[clang] Diagnose misuse of the cleanup attribute (PR #80040)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 08:22:08 PST 2024
erichkeane wrote:
> Umm how could I resolve that? I tried various things but none working. 🥲
You'll have to spend some time in a debugger (note that `clang::DiagnosticIDs::EmitDiag` is where the diagnostic happens, so is a good place for a brekapoint). But I see that in your creation of your expressions you use `SourceLocation{}` in a few places (which is the 'empty' source `SourceLocation` and likely what is being used for the diagnostic).
So you'll likely need to come up with a good location for at least one of those.
https://github.com/llvm/llvm-project/pull/80040
More information about the cfe-commits
mailing list