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 | 3bd21383f0d788e49af71c5d25255197ddb8a59b (patch) | |
tree | 52f0f02c785ee26b1f42c2fabc2d72d149b8fb09 /lib/Frontend/BoostConAction.cpp | |
parent | 7a759606d93975866051f67104ae58446e55f404 (diff) |
Remove BoostCon-specific code from Clang. FWIW, I'm a fan of things like this living in a separate branch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/BoostConAction.cpp')
-rw-r--r-- | lib/Frontend/BoostConAction.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/Frontend/BoostConAction.cpp b/lib/Frontend/BoostConAction.cpp deleted file mode 100644 index 4a12ff2ebc..0000000000 --- a/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()); -} |