llvm-project
6b122723 - [clang] Informative error for lifetimebound in decl-spec (#118567)

Commit
299 days ago
[clang] Informative error for lifetimebound in decl-spec (#118567) Emit a bit more informative error when the `[[clang::lifetimebound]]` attribute is wrongly appearing on a decl-spec: ``` 'lifetimebound' attribute only applies to parameters and implicit object parameters ``` instead of: ``` 'lifetimebound' attribute cannot be applied to types ``` The new error is also consistent with the diagnostic emitted when the attribute is misplaced in other parts of a declarator.
Author
Parents
Loading