summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-17 23:19:02 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-17 23:19:02 +0000
commit9941a4d31493f6fc3c3c39f53a4bb7bf94a55eca (patch)
tree12caec2ca2ea42d71186a517276f10b945ce0585 /clang/lib/Sema/SemaDecl.cpp
parent7f836c7c611c6fe26ce5c27657e6736296c1afad (diff)
downloadbcm5719-llvm-9941a4d31493f6fc3c3c39f53a4bb7bf94a55eca.tar.gz
bcm5719-llvm-9941a4d31493f6fc3c3c39f53a4bb7bf94a55eca.zip
Fix some erroneous comments due to trigger-happy copy&paste.
No functionality change. llvm-svn: 73657
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 90b26025414..3c6f706f158 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -219,6 +219,8 @@ void Sema::PopDeclContext() {
CurContext = getContainingDC(CurContext);
}
+/// EnterDeclaratorContext - Used when we must lookup names in the context
+/// of a declarator's nested name specifier.
void Sema::EnterDeclaratorContext(Scope *S, DeclContext *DC) {
assert(PreDeclaratorDC == 0 && "Previous declarator context not popped?");
PreDeclaratorDC = static_cast<DeclContext*>(S->getEntity());
@@ -227,11 +229,6 @@ void Sema::EnterDeclaratorContext(Scope *S, DeclContext *DC) {
S->setEntity(CurContext);
}
-/// ActOnCXXExitDeclaratorScope - Called when a declarator that previously
-/// invoked ActOnCXXEnterDeclaratorScope(), is finished. 'SS' is the same
-/// CXXScopeSpec that was passed to ActOnCXXEnterDeclaratorScope as well.
-/// Used to indicate that names should revert to being looked up in the
-/// defining scope.
void Sema::ExitDeclaratorContext(Scope *S) {
S->setEntity(PreDeclaratorDC);
PreDeclaratorDC = 0;
OpenPOWER on IntegriCloud