diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-22 17:17:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-22 18:26:37 +0530 |
| commit | 0d728071e3287a71ce7928640e63c19f4d0ab00f (patch) | |
| tree | d6e9fc90331e690dbc439e7ab8b9983df2d796a6 /.clang-tidy | |
| parent | f09f1aa704f06472ec134b40e2f69bf3279c3f06 (diff) | |
| download | null-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.tar.gz null-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.zip | |
Build fixes + formatting
Diffstat (limited to '.clang-tidy')
| -rw-r--r-- | .clang-tidy | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..d948960 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,43 @@ +--- +Checks: > + bugprone-* + clang-analyzer-* + cppcoreguidelines-* + modernize-* + performance-* + readability-* + misc-* + -modernize-use-trailing-return-type + -cppcoreguidelines-pro-bounds-pointer-arithmetic + -cppcoreguidelines-avoid-magic-numbers + +WarningsAsErrors: > + bugprone-* + clang-analyzer-* + cppcoreguidelines-* + modernize-* + performance-* + +HeaderFilterRegex: '' +HeaderFileExtensions: + - h + - hpp +ImplementationFileExtensions: + - c + - cpp + +CheckOptions: + modernize-use-nullptr.CheckSmartPointers: true + modernize-use-nullptr.IgnoreMacros: false + # Use 'auto' when it improves readability + modernize-use-auto.MinTypeNameLength: 5 + readability-container-size-empty.IgnoreQtContainers: true + # Performance optimizations + performance-noexcept-move-constructor.StrictMode: true + performance-trivially-destructible.StrictMode: true + modernize-use-override.IgnoreDestructors: false + modernize-use-override.IgnoreVirtualWithFinal: true + # Clang Analyzer settings + clang-analyzer-optin.cplusplus.VirtualCall: true + clang-analyzer-optin.cplusplus.UninitializedObject: true +... |
