aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorJulian Schmidt <git.julian.schmidt@gmail.com>2024-04-30 07:22:30 +0200
committerGitHub <noreply@github.com>2024-04-30 07:22:30 +0200
commitfbe4d991323b026eb64cd3d0ee811854b54ca33f (patch)
treef4b31203da51ca294a11e045d6277755598739fb /clang/lib/Frontend/FrontendActions.cpp
parent79095b4079e8d4f8176bcc53fdacd2765f310cdb (diff)
downloadllvm-fbe4d991323b026eb64cd3d0ee811854b54ca33f.zip
llvm-fbe4d991323b026eb64cd3d0ee811854b54ca33f.tar.gz
llvm-fbe4d991323b026eb64cd3d0ee811854b54ca33f.tar.bz2
[clang-tidy] fix false-negative for macros in `readability-math-missing-parentheses` (#90279)
When a binary operator is the last operand of a macro, the end location that is past the `BinaryOperator` will be inside the macro and therefore an invalid location to insert a `FixIt` into, which is why the check bails when encountering such a pattern. However, the end location is only required for the `FixIt` and the diagnostic can still be emitted, just without an attached fix.
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions