aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2019-10-15 09:43:52 +0200
committerAvatar Marvin Schmidt <marv@exherbo.org> 2019-10-22 20:07:36 +0200
commitb9eacfffef2063544e38d9c15882139cdfe63f72 (patch)
treeaf6310de5f22768c258b4ebbd1ac3ca20ccb9507
parent7f3c4f8cf8b6d37ce160283e98008bcf40640d0c (diff)
downloadpaludis-b9eacfffef2063544e38d9c15882139cdfe63f72.tar.gz
paludis-b9eacfffef2063544e38d9c15882139cdfe63f72.tar.xz
clang-tidy: Update config with clang-tidy 9
-rw-r--r--.clang-tidy30
1 files changed, 29 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 4c46da7cd..ccb804cbd 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -21,9 +21,13 @@ WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
FormatStyle: none
-CheckOptions:
+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
@@ -40,11 +44,35 @@ CheckOptions:
value: reasonable
- key: modernize-loop-convert.NamingStyle
value: CamelCase
+ - key: modernize-make-shared.IgnoreMacros
+ value: '1'
+ - key: modernize-make-shared.IncludeStyle
+ value: '0'
+ - key: modernize-make-shared.MakeSmartPtrFunction
+ value: 'std::make_shared'
+ - key: modernize-make-shared.MakeSmartPtrFunctionHeader
+ value: memory
+ - key: modernize-make-unique.IgnoreMacros
+ value: '1'
+ - key: modernize-make-unique.IncludeStyle
+ value: '0'
+ - key: modernize-make-unique.MakeSmartPtrFunction
+ value: 'std::make_unique'
+ - key: modernize-make-unique.MakeSmartPtrFunctionHeader
+ value: memory
- key: modernize-pass-by-value.IncludeStyle
value: llvm
- key: modernize-replace-auto-ptr.IncludeStyle
value: llvm
+ - key: modernize-use-nodiscard.ReplacementString
+ value: '[[nodiscard]]'
+ - key: modernize-use-noexcept.ReplacementString
+ value: ''
+ - key: modernize-use-noexcept.UseNoexceptFalse
+ value: '1'
- key: modernize-use-nullptr.NullMacros
value: 'NULL'
+ - key: modernize-use-transparent-functors.SafeMode
+ value: '0'
...