[cfe-commits] r73657 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Wed Jun 17 16:19:02 PDT 2009
Author: akirtzidis
Date: Wed Jun 17 18:19:02 2009
New Revision: 73657
URL: http://llvm.org/viewvc/llvm-project?rev=73657&view=rev
Log:
Fix some erroneous comments due to trigger-happy copy&paste.
No functionality change.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=73657&r1=73656&r2=73657&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Jun 17 18:19:02 2009
@@ -219,6 +219,8 @@
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 @@
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;
More information about the cfe-commits
mailing list