-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a few more clang-tidy checks and apply them to the codebase. The most important check here is `modernize-use-default-member-init`, because it helps to ensure that we do default member variable initialization. Doing this consistently helps to avoid undefined behavior. The changes were *automatically generated by clang-tidy*. How this was done: ``` mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=../install -DINSTALL_PYTHON=FALSE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. make -j12 run-clang-tidy -config-file=../.clang-tidy -export-fixes fixes.yaml -header-filter="interface/.*" . mv fixes.yaml .. cd .. clang-apply-replacements . ```
- Loading branch information
1 parent
865a330
commit 8c64e8e
Showing
30 changed files
with
162 additions
and
164 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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
--- | ||
Checks: -*, | ||
,boost-use-to-string, | ||
,bugprone-string-constructor, | ||
,misc-definitions-in-headers, | ||
,misc-string-compare, | ||
,misc-uniqueptr-reset-release, | ||
,modernize-use-default-member-init | ||
,modernize-use-override, | ||
,performance-faster-string-find, | ||
,performance-inefficient-algorithm, | ||
,performance-inefficient-vector-operation, | ||
,performance-move-const-arg, | ||
,performance-trivially-destructible, | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: '' | ||
CheckOptions: | ||
- key: misc-definitions-in-headers.HeaderFileExtensions | ||
value: 'h,hh,hpp,hxx,icc' | ||
- key: modernize-use-default-member-init.UseAssignment | ||
value: true | ||
... |
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
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
Oops, something went wrong.