[PATCH] D26922: [ObjC++] Don't enter a C++ declarator context when the current context is an Objective-C declaration

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 15:49:16 PST 2016


ahatanak added a comment.

I wonder whether it is possible to avoid calling DeclScopeObj.EnterDeclaratorScope at ParseDecl.cpp:5317 instead of fixing Sema::ActOnCXXEnterDeclaratorScope?

I believe it's calling EnterDeclaratorScope to enable name lookup when a namespace-member variable is defined outside the namespace. Since that's not the case here, it seems to me that it shouldn't called in the first place.

http://en.cppreference.com/w/cpp/language/unqualified_lookup


Repository:
  rL LLVM

https://reviews.llvm.org/D26922





More information about the cfe-commits mailing list