diff options
| author | CJ Johnson <johnsoncj@google.com> | 2021-11-30 18:17:24 -0500 |
|---|---|---|
| committer | CJ Johnson <johnsoncj@google.com> | 2022-01-12 17:04:44 -0500 |
| commit | 81c330e23dd4a14736b977e246bdca25be9b5770 (patch) | |
| tree | fcd21e8cf76df472491f848f46b79b4f72c90880 /llvm/unittests/Support/TargetParserTest.cpp | |
| parent | 6983968e833b03e8a25eba4d2a02e4d1b5d446a2 (diff) | |
| download | llvm-81c330e23dd4a14736b977e246bdca25be9b5770.zip llvm-81c330e23dd4a14736b977e246bdca25be9b5770.tar.gz llvm-81c330e23dd4a14736b977e246bdca25be9b5770.tar.bz2 | |
Filter string_view from the nullptr diagnosis of bugprone-string-constructor to prevent duplicate warnings with bugprone-stringview-nullptr
Updates the check and tests to not diagnose the null case for string_view (but retains it for string). This prevents the check from giving duplicate warnings that are caught by bugprone-stringview-nullptr ([[ https://reviews.llvm.org/D113148 | D113148 ]]).
Reviewed By: ymandel
Differential Revision: https://reviews.llvm.org/D114823
Diffstat (limited to 'llvm/unittests/Support/TargetParserTest.cpp')
0 files changed, 0 insertions, 0 deletions
