diff options
author | Nicolas van Kempen <nvankemp@gmail.com> | 2024-11-27 12:03:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-27 12:03:10 -0500 |
commit | 2f02b5af6ecb973d3a7faad9b0daff22646e724d (patch) | |
tree | bacb853902f1e6ac8ffbc163f7743ae26fd05d37 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | b71704436e61057a5bd6426915c368e5d76cb7de (diff) | |
download | llvm-2f02b5af6ecb973d3a7faad9b0daff22646e724d.zip llvm-2f02b5af6ecb973d3a7faad9b0daff22646e724d.tar.gz llvm-2f02b5af6ecb973d3a7faad9b0daff22646e724d.tar.bz2 |
[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative (#117837)
In C++20, `operator!=` can be rewritten by negating `operator==`. This
is the case for `std::string`, where `operator!=` is not provided hence
relying on this rewriting.
Cover this case by matching `binaryOperation` and adding one case to
`isNegativeComparison`.
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions