Chris Lattner | a5534f9 | 2006-08-14 00:38:06 +0000 | [diff] [blame] | 1 | //===--- EmptyAction.cpp - Minimalistic action implementation -------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Chris Lattner and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the EmptyAction interface. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "clang/Parse/Parser.h" |
| 15 | //#include "clang/Parse/Declarations.h" |
| 16 | //#include "clang/Parse/Scope.h" |
| 17 | using namespace llvm; |
| 18 | using namespace clang; |
| 19 | |
| 20 | /// isTypedefName - This looks at the IdentifierInfo::FETokenInfo field to |
| 21 | /// determine whether the name is a typedef or not in this scope. |
| 22 | bool EmptyAction::isTypedefName(const IdentifierInfo &II, Scope *S) const { |
| 23 | return true; |
| 24 | } |
| 25 | |
| 26 | /// ParseDeclarator - If this is a typedef declarator, we modify the |
| 27 | /// IdentifierInfo::FETokenInfo field to keep track of this fact, until S is |
| 28 | /// popped. |
| 29 | void EmptyAction::ParseDeclarator(SourceLocation Loc, Scope *S, Declarator &D, |
| 30 | ExprTy *Init) { |
| 31 | } |
| 32 | |
| 33 | /// PopScope - When a scope is popped, if any typedefs are now out-of-scope, |
| 34 | /// they are removed from the IdentifierInfo::FETokenInfo field. |
| 35 | void EmptyAction::PopScope(SourceLocation Loc, Scope *S) { |
| 36 | |
| 37 | } |