blob: 9e4f97dbc382bdbe2d0971ffc080b643dd6e057d [file] [log] [blame]
Douglas Gregorf78cc432010-05-07 15:41:56 +00001//===-- BoostConAction.cpp - BoostCon Workshop Action -----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#include "clang/Frontend/FrontendActions.h"
10#include "clang/AST/ASTConsumer.h"
11using namespace clang;
12
13namespace {
14 class BoostConASTConsumer : public ASTConsumer {
15 public:
16 /// HandleTranslationUnit - This method is called when the ASTs for entire
17 /// translation unit have been parsed.
18 virtual void HandleTranslationUnit(ASTContext &Ctx);
19 };
20}
21
22ASTConsumer *BoostConAction::CreateASTConsumer(CompilerInstance &CI,
23 llvm::StringRef InFile) {
24 return new BoostConASTConsumer();
25}
26
27void BoostConASTConsumer::HandleTranslationUnit(ASTContext &Ctx) {
28 fprintf(stderr, "Welcome to BoostCon!\n");
29}