diff options
author | Steve Naroff <snaroff@apple.com> | 2007-09-15 18:49:24 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-09-15 18:49:24 +0000 |
commit | 08d92e46d2ec2895f3c2ca14876830120bbe4f78 (patch) | |
tree | 41f8563c82a0af23ec1108ba28117311287701c2 /Driver/PrintParserCallbacks.cpp | |
parent | e1076476e948325af6b867180d4b20b50bc89cf6 (diff) |
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...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintParserCallbacks.cpp')
-rw-r--r-- | Driver/PrintParserCallbacks.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Driver/PrintParserCallbacks.cpp b/Driver/PrintParserCallbacks.cpp index 3e37514bb2..0ed922371f 100644 --- a/Driver/PrintParserCallbacks.cpp +++ b/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 |