-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mitigated most
bugprone-unused-return-value
clang-tidy warnings in …
…test code when we enable it for *all* functions (#6673) We should not have any unchecked returns within the test code to make sure everything is working as expected (there might be a case that should also apply to the production code). Unfortunately enabling all functions is abusing this check and it will produce a lot of "false positives" (e.g. `erase()`/`insert()` of containers or usage of stream insertion operators) so this cannot be enabled by default. Since `llvm:Regex` does not support negative lookahead we cannot configure the check to exclude functions.
- Loading branch information
Showing
27 changed files
with
565 additions
and
553 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,7 @@ | ||
--- | ||
InheritParentConfig: true | ||
CheckOptions: | ||
#- key: bugprone-unused-return-value.CheckedFunctions | ||
# value: '::.*' | ||
- key: bugprone-unused-return-value.AllowCastToVoid | ||
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
Oops, something went wrong.