diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-20 00:51:54 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-20 00:51:54 +0000 |
commit | fec52635f0d5ebe6eaa64fcdd66f60166d9ae823 (patch) | |
tree | ad2c300f8de5f21fd1b73df7375f1aebdccc4ce5 /clang/lib/Parse/MinimalAction.cpp | |
parent | 1f8d96868776f59b1b9588f0a0f6675e2ed3396e (diff) | |
download | bcm5719-llvm-fec52635f0d5ebe6eaa64fcdd66f60166d9ae823.tar.gz bcm5719-llvm-fec52635f0d5ebe6eaa64fcdd66f60166d9ae823.zip |
Parsing and AST support for using declarations, from John Thompson!
llvm-svn: 73812
Diffstat (limited to 'clang/lib/Parse/MinimalAction.cpp')
-rw-r--r-- | clang/lib/Parse/MinimalAction.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/lib/Parse/MinimalAction.cpp b/clang/lib/Parse/MinimalAction.cpp index b018e36519f..9ded366b29f 100644 --- a/clang/lib/Parse/MinimalAction.cpp +++ b/clang/lib/Parse/MinimalAction.cpp @@ -42,6 +42,22 @@ Action::DeclPtrTy Action::ActOnUsingDirective(Scope *CurScope, return DeclPtrTy(); } +// Defined out-of-line here because of dependecy on AttributeList +Action::DeclPtrTy Action::ActOnUsingDeclaration(Scope *CurScope, + SourceLocation UsingLoc, + const CXXScopeSpec &SS, + SourceLocation IdentLoc, + IdentifierInfo *TargetName, + AttributeList *AttrList, + bool IsTypeName) { + + // FIXME: Parser seems to assume that Action::ActOn* takes ownership over + // passed AttributeList, however other actions don't free it, is it + // temporary state or bug? + delete AttrList; + return DeclPtrTy(); +} + void PrettyStackTraceActionsDecl::print(llvm::raw_ostream &OS) const { if (Loc.isValid()) { |