[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    Re: [PATCH] D11194: Instantiate function declarations in instantiated functions.
From:       Richard Smith <richard () metafoo ! co ! uk>
Date:       2015-08-03 19:23:31
Message-ID: ae594b8497c874d6bb2ac1a018900a3e () localhost ! localdomain
[Download RAW message or body]

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
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic