diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-23 19:48:53 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-23 21:47:03 +0530 |
| commit | 346c16b4e2ea26f47e0e370a490b7794492a9ebb (patch) | |
| tree | 277a30ac8b0c82a9c9736985385d0d150a55fcb5 /.clang-tidy | |
| parent | 9cc72e8ea9f59f9a9627d05528d54a559ebd412c (diff) | |
| download | null-browser-346c16b4e2ea26f47e0e370a490b7794492a9ebb.tar.gz null-browser-346c16b4e2ea26f47e0e370a490b7794492a9ebb.zip | |
Apply clang-tidy suggestions
Diffstat (limited to '.clang-tidy')
| -rw-r--r-- | .clang-tidy | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/.clang-tidy b/.clang-tidy index d948960..b4cca2b 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,24 +1,33 @@ --- +UseColor: true + Checks: > - bugprone-* - clang-analyzer-* - cppcoreguidelines-* - modernize-* - performance-* - readability-* - misc-* - -modernize-use-trailing-return-type - -cppcoreguidelines-pro-bounds-pointer-arithmetic - -cppcoreguidelines-avoid-magic-numbers + -* + , readability-* + , bugprone-* + , clang-analyzer-* + , performance-* + , modernize-* + , misc-const-correctness + , -modernize-use-trailing-return-type + , -readability-magic-numbers + , -readability-braces-around-statements + , -readability-convert-member-functions-to-static + , -readability-implicit-bool-conversion + , -bugprone-easily-swappable-parameters + +# , cppcoreguidelines-owning-memory +# , cppcoreguidelines-* +# , misc-* WarningsAsErrors: > bugprone-* - clang-analyzer-* - cppcoreguidelines-* - modernize-* - performance-* + , clang-analyzer-* + , modernize-* + , performance-* + +HeaderFilterRegex: '^src/.*$' -HeaderFilterRegex: '' HeaderFileExtensions: - h - hpp @@ -27,10 +36,15 @@ ImplementationFileExtensions: - cpp CheckOptions: + readability-identifier-naming.VariableCase: lower_case + readability-identifier-naming.FunctionCase: lower_case + readability-identifier-naming.MemberCase: lower_case + readability-identifier-naming.MethodCase: lower_case + readability-identifier-naming.ParameterCase: lower_case modernize-use-nullptr.CheckSmartPointers: true modernize-use-nullptr.IgnoreMacros: false # Use 'auto' when it improves readability - modernize-use-auto.MinTypeNameLength: 5 + modernize-use-auto.MinTypeNameLength: 8 readability-container-size-empty.IgnoreQtContainers: true # Performance optimizations performance-noexcept-move-constructor.StrictMode: true |
