================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits