Created
June 9, 2021 21:03
-
-
Save ardabbour/d275e792ae3a0bfe0c80102104f02f9e to your computer and use it in GitHub Desktop.
Clang Tidy configuration for ROS projects, from MoveIt!'s repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checks: '-*, | |
performance-*, | |
llvm-namespace-comment, | |
modernize-redundant-void-arg, | |
modernize-use-nullptr, | |
modernize-use-default, | |
modernize-use-override, | |
modernize-loop-convert, | |
readability-named-parameter, | |
readability-redundant-smartptr-get, | |
readability-redundant-string-cstr, | |
readability-simplify-boolean-expr, | |
readability-container-size-empty, | |
readability-identifier-naming, | |
' | |
HeaderFilterRegex: '' | |
AnalyzeTemporaryDtors: false | |
CheckOptions: | |
- key: llvm-namespace-comment.ShortNamespaceLines | |
value: '10' | |
- key: llvm-namespace-comment.SpacesBeforeComments | |
value: '2' | |
- key: readability-braces-around-statements.ShortStatementLines | |
value: '2' | |
# type names | |
- key: readability-identifier-naming.ClassCase | |
value: CamelCase | |
- key: readability-identifier-naming.EnumCase | |
value: CamelCase | |
- key: readability-identifier-naming.UnionCase | |
value: CamelCase | |
# method names | |
- key: readability-identifier-naming.MethodCase | |
value: camelBack | |
# variable names | |
- key: readability-identifier-naming.VariableCase | |
value: lower_case | |
- key: readability-identifier-naming.ClassMemberSuffix | |
value: '_' | |
# const static or global variables are UPPER_CASE | |
- key: readability-identifier-naming.EnumConstantCase | |
value: UPPER_CASE | |
- key: readability-identifier-naming.StaticConstantCase | |
value: UPPER_CASE | |
- key: readability-identifier-naming.ClassConstantCase | |
value: UPPER_CASE | |
- key: readability-identifier-naming.GlobalVariableCase | |
value: UPPER_CASE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment