[clang] [clang-tools-extra] [clang-include-cleaner] Make cleanup attr report expr location (PR #140233)
Daan De Meyer via cfe-commits
cfe-commits at lists.llvm.org
Mon May 19 13:20:08 PDT 2025
================
@@ -1351,7 +1352,8 @@ def OSConsumesThis : InheritableAttr {
def Cleanup : InheritableAttr {
let Spellings = [GCC<"cleanup">];
- let Args = [DeclArgument<Function, "FunctionDecl">];
+ let Args = [DeclArgument<Function, "FunctionDecl">,
+ ExprArgument<"Expr", /*opt=*/0, /*fake=*/1>];
----------------
DaanDeMeyer wrote:
@erichkeane @AaronBallman I reworked this to use 2). I had a look at 1) but given how thinly stretched I already am, I don't have time to make such a change at this time.
https://github.com/llvm/llvm-project/pull/140233
More information about the cfe-commits
mailing list