mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 05:55:43 -04:00
31 lines
1017 B
C++
31 lines
1017 B
C++
//===-- 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 <cstdio>
|
|
using namespace clang;
|
|
|
|
namespace {
|
|
class BoostConASTConsumer : public ASTConsumer {
|
|
public:
|
|
/// HandleTranslationUnit - This method is called when the ASTs for entire
|
|
/// translation unit have been parsed.
|
|
virtual void HandleTranslationUnit(ASTContext &Ctx);
|
|
};
|
|
}
|
|
|
|
ASTConsumer *BoostConAction::CreateASTConsumer(CompilerInstance &CI,
|
|
llvm::StringRef InFile) {
|
|
return new BoostConASTConsumer();
|
|
}
|
|
|
|
void BoostConASTConsumer::HandleTranslationUnit(ASTContext &Ctx) {
|
|
fprintf(stderr, "Welcome to BoostCon!\n");
|
|
}
|