[PATCH] D19754: Allow 'nodebug' on local variables

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 09:24:53 PDT 2016


probinson added inline comments.

================
Comment at: include/clang/Basic/Attr.td:86-88
@@ -85,1 +85,5 @@
+def NonParmVar : SubsetSubject<Var,
+                               [{S->getKind() != Decl::ImplicitParam &&
+                                 S->getKind() != Decl::ParmVar &&
+                                 S->getKind() != Decl::NonTypeTemplateParm}]>;
 def NonBitField : SubsetSubject<Field,
----------------
aaron.ballman wrote:
> Can you add tests for each of these cases to ensure that the diagnostic fires on all of them?
Actually not sure how to apply an attribute to an ImplicitParam....


http://reviews.llvm.org/D19754





More information about the cfe-commits mailing list