[clang] [LifetimeSafety] Prefer macro spelling for lifetimebound fix-its (PR #204045)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 05:30:44 PDT 2026
zeyi2 wrote:
> But I wonder if this heuristic would need some user switch at some point.
> I also think that, ideally, we would allow the user to pass in a compiler or clang-tidy flag to specify which macro they would like these suggestions to use.
Thanks for reviewing, I'll add a command line option later.
My current thinking is that this probably should not be a clang-tidy option (since the warning comes from Sema, not from a Clang-tidy check), if a clang-tidy user wants these fix-its, they can pass it via `extra-arg` :)
https://github.com/llvm/llvm-project/pull/204045
More information about the cfe-commits
mailing list