From: SONOLET Aymeric Date: Fri, 29 Dec 2023 18:22:05 +0000 (+0100) Subject: fix: small tweaks of config for clang-tidy X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d7be1e5677ab3c0b6eafca34e7e8663cde0bfb8d;p=modules%2Fshaper.git fix: small tweaks of config for clang-tidy --- diff --git a/.clang-tidy b/.clang-tidy index ae75e965a..f79ac434d 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,62 +1,66 @@ --- -Checks: 'clang-diagnostic-*,clang-analyzer-*,modernize-use-override,modernize-use-nullptr,modernize-use-using,modernize-use-default-member-init,modernize-loop-convert,modernize-use-auto,modernize-redundant-void-arg,modernize-type-traits,modernize-use-bool-literals,modernize-use-equals-default,modernize-use-equals-delete,misc-include-cleaner,misc-const-correctness,misc-unused-parameters' +Checks: > + clang-diagnostic-*, + clang-analyzer-*, + modernize-use-override,modernize-use-nullptr,modernize-use-using,modernize-use-default-member-init, + modernize-loop-convert,modernize-use-auto,modernize-redundant-void-arg,modernize-type-traits, + modernize-use-bool-literals,modernize-use-equals-default,modernize-use-equals-delete, + misc-include-cleaner,misc-const-correctness,misc-unused-parameters WarningsAsErrors: '' -HeaderFilterRegex: '.*SHAPER.*' +HeaderFilterRegex: .*SHAPER.* AnalyzeTemporaryDtors: false -FormatStyle: none -User: as259691 +FormatStyle: none +User: as259691 CheckOptions: - - key: cert-dcl16-c.NewSuffixes - value: 'L;LL;LU;LLU' - - key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField - value: '0' - - key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors - value: '1' - - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic - value: '1' - - key: google-readability-braces-around-statements.ShortStatementLines - value: '1' - - key: google-readability-function-size.StatementThreshold - value: '800' - - key: google-readability-namespace-comments.ShortNamespaceLines - value: '10' - - key: google-readability-namespace-comments.SpacesBeforeComments - value: '2' - - key: misc-unused-parameters.StrictMode - value: '0' - - key: modernize-loop-convert.MaxCopySize - value: '16' - - key: modernize-loop-convert.MinConfidence - value: reasonable - - key: modernize-loop-convert.NamingStyle - value: CamelCase - - key: modernize-pass-by-value.IncludeStyle - value: llvm - - key: modernize-replace-auto-ptr.IncludeStyle - value: llvm - - key: modernize-use-auto.MinTypeNameLength - value: '5' - - key: modernize-use-auto.RemoveStars - value: '0' - - key: modernize-use-default-member-init.IgnoreMacros - value: '1' - - key: modernize-use-default-member-init.UseAssignment - value: '0' - - key: modernize-use-equals-default.IgnoreMacros - value: '1' - - key: modernize-use-equals-delete.IgnoreMacros - value: '1' - - key: modernize-use-nullptr.NullMacros - value: 'NULL' - - key: modernize-use-override.AllowOverrideAndFinal - value: '0' - - key: modernize-use-override.FinalSpelling - value: final - - key: modernize-use-override.IgnoreDestructors - value: '0' - - key: modernize-use-override.OverrideSpelling - value: override - - key: modernize-use-using.IgnoreMacros - value: '1' -... - + - key: cert-dcl16-c.NewSuffixes + value: L;LL;LU;LLU + - key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField + value: '0' + - key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors + value: '1' + - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic + value: '1' + - key: google-readability-braces-around-statements.ShortStatementLines + value: '1' + - key: google-readability-function-size.StatementThreshold + value: '800' + - key: google-readability-namespace-comments.ShortNamespaceLines + value: '10' + - key: google-readability-namespace-comments.SpacesBeforeComments + value: '2' + - key: misc-unused-parameters.StrictMode + value: '0' + - key: modernize-loop-convert.MaxCopySize + value: '16' + - key: modernize-loop-convert.MinConfidence + value: reasonable + - key: modernize-loop-convert.NamingStyle + value: CamelCase + - key: modernize-pass-by-value.IncludeStyle + value: llvm + - key: modernize-replace-auto-ptr.IncludeStyle + value: llvm + - key: modernize-use-auto.MinTypeNameLength + value: '5' + - key: modernize-use-auto.RemoveStars + value: '0' + - key: modernize-use-default-member-init.IgnoreMacros + value: '1' + - key: modernize-use-default-member-init.UseAssignment + value: '0' + - key: modernize-use-equals-default.IgnoreMacros + value: '1' + - key: modernize-use-equals-delete.IgnoreMacros + value: '1' + - key: modernize-use-nullptr.NullMacros + value: 'NULL' + - key: modernize-use-override.AllowOverrideAndFinal + value: '0' + - key: modernize-use-override.FinalSpelling + value: final + - key: modernize-use-override.IgnoreDestructors + value: '0' + - key: modernize-use-override.OverrideSpelling + value: override + - key: modernize-use-using.IgnoreMacros + value: '1' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2006960c0..70a5c0398 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -97,10 +97,6 @@ repos: - id: rst-backticks - id: rst-directive-colons - id: rst-inline-touching-normal - # - repo: https://github.com/rstcheck/rstcheck - # rev: v6.2.0 # Use the sha / tag you want to point at - # hooks: - # - id: rstcheck - repo: https://github.com/cheshirekow/cmake-format-precommit rev: v0.6.10 hooks: