diff options
author | Julian Schmidt <git.julian.schmidt@gmail.com> | 2024-04-30 07:22:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 07:22:30 +0200 |
commit | fbe4d991323b026eb64cd3d0ee811854b54ca33f (patch) | |
tree | f4b31203da51ca294a11e045d6277755598739fb /clang/lib/Frontend/FrontendActions.cpp | |
parent | 79095b4079e8d4f8176bcc53fdacd2765f310cdb (diff) | |
download | llvm-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