From 179fe1a47dce4fe7fee39c55c1e9421464da8cdf Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 17 Jun 2009 23:19:02 +0000 Subject: [PATCH] Fix some erroneous comments due to trigger-happy copy&paste. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73657 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 90b2602541..3c6f706f15 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/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(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; -- 2.50.1