summaryrefslogtreecommitdiffstats
path: root/clang/Driver/PrintParserCallbacks.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-09-15 18:49:24 +0000
committerSteve Naroff <snaroff@apple.com>2007-09-15 18:49:24 +0000
commit30d242c99f44aede543dbf1aff270d3445247032 (patch)
tree7ff8ea500c0309928de8eb9a42b3d218f405c07f /clang/Driver/PrintParserCallbacks.cpp
parent29f99d7142237ae8ff18a6b381451f94156494f2 (diff)
downloadbcm5719-llvm-30d242c99f44aede543dbf1aff270d3445247032.tar.gz
bcm5719-llvm-30d242c99f44aede543dbf1aff270d3445247032.zip
Start converting Action methods from Parse-prefix to ActOn-prefix.
The previous naming scheme was confusing, since it resulted in both the Parser and Action modules having methods with the same name. In addition, the Action module never does any parsing... llvm-svn: 41986
Diffstat (limited to 'clang/Driver/PrintParserCallbacks.cpp')
-rw-r--r--clang/Driver/PrintParserCallbacks.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/Driver/PrintParserCallbacks.cpp b/clang/Driver/PrintParserCallbacks.cpp
index 3e37514bb28..0ed922371f0 100644
--- a/clang/Driver/PrintParserCallbacks.cpp
+++ b/clang/Driver/PrintParserCallbacks.cpp
@@ -22,12 +22,12 @@ using namespace clang;
namespace {
class ParserPrintActions : public MinimalAction {
- /// ParseDeclarator - This callback is invoked when a declarator is parsed
+ /// ActOnDeclarator - This callback is invoked when a declarator is parsed
/// and 'Init' specifies the initializer if any. This is for things like:
/// "int X = 4" or "typedef int foo".
- virtual DeclTy *ParseDeclarator(Scope *S, Declarator &D,
+ virtual DeclTy *ActOnDeclarator(Scope *S, Declarator &D,
DeclTy *LastInGroup) {
- std::cout << "ParseDeclarator ";
+ std::cout << "ActOnDeclarator ";
if (IdentifierInfo *II = D.getIdentifier()) {
std::cout << "'" << II->getName() << "'";
} else {
@@ -36,7 +36,7 @@ namespace {
std::cout << "\n";
// Pass up to EmptyActions so that the symbol table is maintained right.
- return MinimalAction::ParseDeclarator(S, D, LastInGroup);
+ return MinimalAction::ActOnDeclarator(S, D, LastInGroup);
}
/// PopScope - This callback is called immediately before the specified scope
OpenPOWER on IntegriCloud