-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.clang-tidy
More file actions
19 lines (17 loc) · 990 Bytes
/
.clang-tidy
File metadata and controls
19 lines (17 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Inherit checks from the chosen clang-format style if desired (can help consistency)
InheritParentConfig: true
# Specify checks to run. Use wildcards. '-' prefix disables.
# Start broad, then disable specifics if needed.
Checks: >
-* # Disable everything by default
,bugprone-* # Enable potential bug detections
,performance-* # Enable performance hints
,readability-* # Enable readability improvements
,modernize-* # Enable C++ modernization suggestions
,google-* # Enable checks from Google style guide (optional)
,google-build-using-namespace # Example: Disable a specific check if noisy
,modernize-use-trailing-return-type # Another example
,readability-identifier-length # Can be annoying
# Specify which headers to analyze. Usually only your own project's headers.
# Adjust the regex based on your project structure (e.g., 'src/.*', 'include/.*')
HeaderFilterRegex: "^(?:src|include)/.*"