1 //===--- FrontendActions.cpp ----------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "clang/StaticAnalyzer/FrontendActions.h"
11 #include "clang/Frontend/CompilerInstance.h"
12 #include "clang/StaticAnalyzer/AnalysisConsumer.h"
13 using namespace clang
;
16 ASTConsumer
*AnalysisAction::CreateASTConsumer(CompilerInstance
&CI
,
17 llvm::StringRef InFile
) {
18 return CreateAnalysisConsumer(CI
.getPreprocessor(),
19 CI
.getFrontendOpts().OutputFile
,
20 CI
.getAnalyzerOpts());