aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorNicolas van Kempen <nvankemp@gmail.com>2024-11-27 12:03:10 -0500
committerGitHub <noreply@github.com>2024-11-27 12:03:10 -0500
commit2f02b5af6ecb973d3a7faad9b0daff22646e724d (patch)
treebacb853902f1e6ac8ffbc163f7743ae26fd05d37 /clang/lib/Sema/SemaCodeComplete.cpp
parentb71704436e61057a5bd6426915c368e5d76cb7de (diff)
downloadllvm-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