diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2025-05-21 16:40:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-21 16:40:30 +0200 |
commit | 32946ddd2e5ab83505e832b7ef43bc10bd6dce68 (patch) | |
tree | 480ac1d0d31694edd8aa728f5c2a7a34621021f9 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 95bd9eef42679f3d13e3279204c75372e2c062f0 (diff) | |
download | llvm-32946ddd2e5ab83505e832b7ef43bc10bd6dce68.zip llvm-32946ddd2e5ab83505e832b7ef43bc10bd6dce68.tar.gz llvm-32946ddd2e5ab83505e832b7ef43bc10bd6dce68.tar.bz2 |
[clang-include-cleaner] Make cleanup attr report expr location (#140233)
Instead of reporting the location of the attribute, let's report the
location of the function reference that's passed to the cleanup
attribute as the first argument. This is required as the attribute might
be coming from a macro which means clang-include-cleaner skips the use
as it gets attributed to the header file declaringt the macro and not to
the main file.
To make this work, we have to add a fake argument to the CleanupAttr
constructor so we can pass in the original Expr alongside the function
declaration.
Fixes #140212
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions