blob: b0e8e5d9bb1320eb1a6d93b9f702e8aee5618791 [file] [log] [blame]
Daniel Dunbar9b414d32010-06-15 17:48:49 +00001//===--- FrontendActions.cpp ----------------------------------------------===//
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
Ted Kremenek21142582010-12-23 19:38:26 +000010#include "clang/StaticAnalyzer/FrontendActions.h"
Daniel Dunbar9b414d32010-06-15 17:48:49 +000011#include "clang/Frontend/CompilerInstance.h"
Ted Kremenek21142582010-12-23 19:38:26 +000012#include "clang/StaticAnalyzer/AnalysisConsumer.h"
Daniel Dunbar9b414d32010-06-15 17:48:49 +000013using namespace clang;
Ted Kremenek9ef65372010-12-23 07:20:52 +000014using namespace ento;
Daniel Dunbar9b414d32010-06-15 17:48:49 +000015
16ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
17 llvm::StringRef InFile) {
18 return CreateAnalysisConsumer(CI.getPreprocessor(),
19 CI.getFrontendOpts().OutputFile,
20 CI.getAnalyzerOpts());
21}
22