rsmith added inline comments.
================
Comment at: lib/AST/DeclBase.cpp:269-271
@@ -268,1 +268,5 @@
+bool Decl::isLexicallyWithinFunctionOrMethod() const {
+ return getLexicalDeclContext()->isFunctionOrMethod();
+}
+
----------------
This should also return true if the lexical decl context is a local class. The
point is to allow you to remove the code duplication you added in the other
changes in this patch.
http://reviews.llvm.org/D11194
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits