aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-10-10 17:45:44 +0000
committerSteve Naroff <snaroff@apple.com>2007-10-10 17:45:44 +0000
commit640db42222c9f3f6716cf4d4cbcabb0538c7f4d7 (patch)
treee433645e6abd31671f0bdbc07262fd6e5c4b9606
parente440eb8158e71deb1e4ab11618ae3d680aac6da1 (diff)
Fix a latent bug in MinimalActions (created by a recent name change).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42829 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/PrintParserCallbacks.cpp10
-rw-r--r--Parse/MinimalAction.cpp4
-rw-r--r--include/clang/Parse/Action.h6
3 files changed, 10 insertions, 10 deletions
diff --git a/Driver/PrintParserCallbacks.cpp b/Driver/PrintParserCallbacks.cpp
index e3bfdf57f1..d7deb43f87 100644
--- a/Driver/PrintParserCallbacks.cpp
+++ b/Driver/PrintParserCallbacks.cpp
@@ -38,13 +38,13 @@ namespace {
return MinimalAction::ActOnDeclarator(S, D, LastInGroup);
}
- /// PopScope - This callback is called immediately before the specified scope
- /// is popped and deleted.
- virtual void PopScope(SourceLocation Loc, Scope *S) {
- std::cout << "PopScope\n";
+ /// ActOnPopScope - This callback is called immediately before the specified
+ /// scope is popped and deleted.
+ virtual void ActOnPopScope(SourceLocation Loc, Scope *S) {
+ std::cout << "ActOnPopScope\n";
// Pass up to EmptyActions so that the symbol table is maintained right.
- MinimalAction::PopScope(Loc, S);
+ MinimalAction::ActOnPopScope(Loc, S);
}
};
}
diff --git a/Parse/MinimalAction.cpp b/Parse/MinimalAction.cpp
index 932f8ff29e..b0dad9330c 100644
--- a/Parse/MinimalAction.cpp
+++ b/Parse/MinimalAction.cpp
@@ -97,9 +97,9 @@ MinimalAction::ActOnForwardClassDeclaration(SourceLocation AtClassLoc,
return 0;
}
-/// PopScope - When a scope is popped, if any typedefs are now out-of-scope,
+/// ActOnPopScope - When a scope is popped, if any typedefs are now out-of-scope,
/// they are removed from the IdentifierInfo::FETokenInfo field.
-void MinimalAction::PopScope(SourceLocation Loc, Scope *S) {
+void MinimalAction::ActOnPopScope(SourceLocation Loc, Scope *S) {
for (Scope::decl_iterator I = S->decl_begin(), E = S->decl_end();
I != E; ++I) {
IdentifierInfo &II = *static_cast<IdentifierInfo*>(*I);
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h
index 89ed0c6e99..b5142f0168 100644
--- a/include/clang/Parse/Action.h
+++ b/include/clang/Parse/Action.h
@@ -597,9 +597,9 @@ public:
/// popped.
virtual DeclTy *ActOnDeclarator(Scope *S, Declarator &D, DeclTy *LastInGroup);
- /// PopScope - When a scope is popped, if any typedefs are now out-of-scope,
- /// they are removed from the IdentifierInfo::FETokenInfo field.
- virtual void PopScope(SourceLocation Loc, Scope *S);
+ /// ActOnPopScope - When a scope is popped, if any typedefs are now
+ /// out-of-scope, they are removed from the IdentifierInfo::FETokenInfo field.
+ virtual void ActOnPopScope(SourceLocation Loc, Scope *S);
virtual void ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) {
TUScope = S;
}