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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 05:46:43 PDT 2016


aaron.ballman 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,
----------------
Can you add tests for each of these cases to ensure that the diagnostic fires on all of them?


http://reviews.llvm.org/D19754





More information about the cfe-commits mailing list