blob: 413db98eb10b1934fed45eeb058ca7dda433a6a8 [file] [log] [blame]
Chris Lattnera5534f92006-08-14 00:38:06 +00001//===--- 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"
17using namespace llvm;
18using 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.
22bool 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.
29void 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.
35void EmptyAction::PopScope(SourceLocation Loc, Scope *S) {
36
37}