summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-05-09 23:39:43 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-05-09 23:39:43 +0000
commitfa8e15bfa5341a06b5cd1042a49e04708d6e2140 (patch)
tree6035142f07a01c7562805cd3647dd601b041712a /clang/lib/Parse/ParseDecl.cpp
parent867af2678fb238daa9f3fd820ed4a4698c8647fa (diff)
downloadbcm5719-llvm-fa8e15bfa5341a06b5cd1042a49e04708d6e2140.tar.gz
bcm5719-llvm-fa8e15bfa5341a06b5cd1042a49e04708d6e2140.zip
-Implement proper name lookup for namespaces.
-identifierResolver exposes an iterator interface to get all decls through the scope chain. -The semantic staff (checking IdentifierNamespace and Doug's checking for shadowed tags were moved out of IdentifierResolver and back into Sema. IdentifierResolver just gives an iterator for all reachable decls of an identifier. llvm-svn: 50923
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 65f1124e632..f20c72e61ce 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1251,7 +1251,7 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D) {
// Enter function-declaration scope, limiting any declarators to the
// function prototype scope, including parameter declarators.
- EnterScope(Scope::DeclScope);
+ EnterScope(Scope::FnScope|Scope::DeclScope);
bool IsVariadic = false;
while (1) {
@@ -1526,3 +1526,4 @@ void Parser::ParseTypeofSpecifier(DeclSpec &DS) {
}
}
+
OpenPOWER on IntegriCloud