[PATCH] D11194: Instantiate function declarations in instantiated functions.

Richard Smith richard at metafoo.co.uk
Mon Aug 3 12:23:31 PDT 2015


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







More information about the cfe-commits mailing list