diff options
author | Jonathan D. Turner <jonathan.d.turner@gmail.com> | 2011-07-07 22:40:15 +0000 |
---|---|---|
committer | Jonathan D. Turner <jonathan.d.turner@gmail.com> | 2011-07-07 22:40:15 +0000 |
commit | f8c3ccdeae8afc3a2268fb7af1957de7a2859731 (patch) | |
tree | c2423b5af0e6ec494150574719f2db70f190da09 /clang/lib/Frontend/BoostConAction.cpp | |
parent | 9721396dab338c2a6f1f4fda1225430ae3a8de8a (diff) | |
download | bcm5719-llvm-f8c3ccdeae8afc3a2268fb7af1957de7a2859731.tar.gz bcm5719-llvm-f8c3ccdeae8afc3a2268fb7af1957de7a2859731.zip |
Remove BoostCon-specific code from Clang. FWIW, I'm a fan of things like this living in a separate branch.
llvm-svn: 134649
Diffstat (limited to 'clang/lib/Frontend/BoostConAction.cpp')
-rw-r--r-- | clang/lib/Frontend/BoostConAction.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/clang/lib/Frontend/BoostConAction.cpp b/clang/lib/Frontend/BoostConAction.cpp deleted file mode 100644 index 4a12ff2ebc9..00000000000 --- a/clang/lib/Frontend/BoostConAction.cpp +++ /dev/null @@ -1,39 +0,0 @@ -//===-- BoostConAction.cpp - BoostCon Workshop Action -----------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -#include "clang/Frontend/FrontendActions.h" -#include "clang/AST/ASTConsumer.h" -#include "clang/AST/RecursiveASTVisitor.h" -#include <cstdio> -#include <iostream> -using namespace clang; - -namespace { - class BoostConASTConsumer : public ASTConsumer, - public RecursiveASTVisitor<BoostConASTConsumer> { - public: - /// HandleTranslationUnit - This method is called when the ASTs for entire - /// translation unit have been parsed. - virtual void HandleTranslationUnit(ASTContext &Ctx); - - bool VisitCXXRecordDecl(CXXRecordDecl *D) { - std::cout << D->getNameAsString() << std::endl; - return true; - } - }; -} - -ASTConsumer *BoostConAction::CreateASTConsumer(CompilerInstance &CI, - llvm::StringRef InFile) { - return new BoostConASTConsumer(); -} - -void BoostConASTConsumer::HandleTranslationUnit(ASTContext &Ctx) { - fprintf(stderr, "Welcome to BoostCon!\n"); - TraverseDecl(Ctx.getTranslationUnitDecl()); -} |