]> granicus.if.org Git - clang/commitdiff
Fix some erroneous comments due to trigger-happy copy&paste.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 17 Jun 2009 23:19:02 +0000 (23:19 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 17 Jun 2009 23:19:02 +0000 (23:19 +0000)
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73657 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 90b26025414bb3ed6be5b24bb5964997e22dfa9b..3c6f706f1586f65127910e3061165ae55aca68f6 100644 (file)
@@ -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;