-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add clang-tidy config and tidy-up generated code (#3254)
- Loading branch information
1 parent
af4ac49
commit fedd40a
Showing
7 changed files
with
100 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Checks: | ||
'-*, | ||
clang-analyzer-*, | ||
-clang-diagnostic-shadow-uncaptured-local, | ||
cert-*, | ||
modernize-*, | ||
-modernize-avoid-c-arrays, | ||
-modernize-use-trailing-return-type, | ||
performance-*, | ||
-performance-avoid-endl | ||
' | ||
# WarningsAsErrors: '*' | ||
HeaderFilterRegex: '' | ||
UseColor: true | ||
FormatStyle: 'file' | ||
ExtraArgs: ['-std=c++17'] | ||
CheckOptions: | ||
modernize-use-nullptr.NullMacros: 'NULL' | ||
# std::exception_ptr is a cheap to copy, pointer-like type; we pass it by value all the time. | ||
performance-unnecessary-value-param.AllowedTypes: 'exception_ptr$;' |
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
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
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
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
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
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