hanchenye-llvm-project/clang/lib/Parse
Douglas Gregor 0be31a2eb7 Move the "current scope" state from the Parser into Action. This
allows Sema some limited access to the current scope, which we only
use in one way: when Sema is performing some kind of declaration that
is not directly driven by the parser (e.g., due to template
instantiatio or lazy declaration of a member), we can find the Scope
associated with a DeclContext, if that DeclContext is still in the
process of being parsed. 

Use this to make the implicit declaration of special member functions
in a C++ class more "scope-less", rather than using the NULL Scope hack.

llvm-svn: 107491
2010-07-02 17:43:08 +00:00
..
AttributeList.cpp Implements Sema part of init_priority(priority) attribute 2010-06-18 21:44:06 +00:00
CMakeLists.txt Update CMake build for new attribute changes. 2010-06-17 00:37:02 +00:00
DeclSpec.cpp Add parentheses suggested by gcc. 2010-06-23 19:34:52 +00:00
Makefile Makefiles: Set Clang CPP compiler flags in a single location, instead of scattered throughout the project Makefiles. 2010-06-08 20:44:43 +00:00
MinimalAction.cpp Improve parser recovery when we encounter a dependent template name 2010-05-21 23:18:07 +00:00
ParseCXXInlineMethods.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseDecl.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseDeclCXX.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseExpr.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseExprCXX.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseInit.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseObjc.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParsePragma.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParsePragma.h Parse: Add support for '#pragma options align'. 2010-05-26 23:29:06 +00:00
ParseStmt.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseTemplate.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
ParseTentative.cpp Add support for Microsoft's __thiscall, from Steven Watanabe! 2010-05-18 16:57:00 +00:00
Parser.cpp Move the "current scope" state from the Parser into Action. This 2010-07-02 17:43:08 +00:00
RAIIObjectsForParser.h Make sure parens/braces/brackets are correctly balanced. 2010-06-17 10:52:18 +00:00