[clang] [clang] Instantiate attributes on other decl types (PR #115924)
Eric Astor via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 14:15:33 PST 2024
================
@@ -52,7 +52,7 @@ struct ExampleAttrInfo : public ParsedAttrInfo {
AttrHandling handleDeclAttribute(Sema &S, Decl *D,
const ParsedAttr &Attr) const override {
// Check if the decl is at file scope.
- if (!D->getDeclContext()->isFileContext()) {
+ if (!D->getDeclContext()->isFileContext() && !isa<LabelDecl>(D)) {
----------------
ericastor wrote:
Moot; I've removed the plugin-based testing.
https://github.com/llvm/llvm-project/pull/115924
More information about the cfe-commits
mailing list