google-build-using-namespace:检查代码中使用 using namespace 的情况; google-global-names-in-headers:检查头文件中使用 using 可能导致的命名空间污染问题; misc-definitions-in-headers:检查头文件中non-extern、non-inline的函数和变量定义,因为多个编译单元包含头文件时,可能会导致潜在的 ODR 问题。 misc-forward...
modernize-make-shared.IgnoreMacros: 'true' modernize-loop-convert.MaxCopySize: '16' bugprone-dangling-handle.HandleClasses: 'std::basic_string_view;std::experimental::basic_string_view' modernize-loop-convert.MakeReverseRangeHeader: '' llvm-else-after-return.WarnOnUnfixable: 'false' bugprone-excepti...
系统头文件不会生成警告。您需要将fmt头文件标记为系统头文件。注意:我正在使用cmake和CPMAddPackage(...
# Ignore GoogleTest function macros. - key: readability-identifier-naming.FunctionIgnoredRegexp value: '(TEST|TEST_F|TEST_P|INSTANTIATE_TEST_SUITE_P|MOCK_METHOD|TYPED_TEST)' - key: readability-identifier-naming.ParameterCase value: 'lower_case' - key: readability-identifier-naming.PrivateMemberCa...
google-readability-namespace-comments.SpacesBeforeComments: '2' llvm-else-after-return.WarnOnConditionVariables: 'false' llvm-else-after-return.WarnOnUnfixable: 'false' llvm-qualified-auto.AddConstToQualified: 'false' SystemHeaders: false ...Footer...
# non-system headers - Regex: '.*' Priority: 2 SortIncludes: true # Spaces SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements SpacesInAngles: false SpacesInCStyleCastParentheses: false SpacesInParentheses: false # Brace wrapping # Not directly mentioned in the coding conventions...
Whitespace Ignore whitespace Split Unified .clang-tidy .vscode extensions.json 40 changes: 40 additions & 0 deletions 40 .clang-tidy Original file line numberDiff line numberDiff line change @@ -0,0 +1,40 @@ Checks: > *, -llvmlibc-restrict-system-libc-headers, -llvmlibc-implementation-in...
System headers are not analyzed by this check.32 changes: 32 additions & 0 deletions 32 clang-tools-extra/test/clang-tidy/checkers/modernize/use-constraints.cpp Original file line numberDiff line numberDiff line change @@ -724,3 +724,35 @@ void not_last_param() { ...
Whitespace Ignore whitespace Split Unified 163 changes: 29 additions & 134 deletions 163 .clang-tidy Original file line numberDiff line numberDiff line change @@ -1,149 +1,44 @@ --- Checks: |- *, -android-*, -bugprone-bool-pointer-implicit-conversion, -bugprone-exception-escape,-bugpro...
17.5.1 Do not ignore the result of std::remove, std::remove_if or std::unique todo 18 Concurrency 18.1 General 18.1.1 Do not use platform specific multi-threading facilities todo modernize old thread stuff? todo check all decl if its a std::thread?