xref: /llvm-project/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp (revision 556c45e9c5ff293a9cf4136f4fe8b8592bab992a)
1 //===--- 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 
10 #include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
11 #include "clang/Frontend/CompilerInstance.h"
12 #include "AnalysisConsumer.h"
13 using namespace clang;
14 using namespace ento;
15 
16 ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
17                                                llvm::StringRef InFile) {
18   return CreateAnalysisConsumer(CI.getPreprocessor(),
19                                 CI.getFrontendOpts().OutputFile,
20                                 CI.getAnalyzerOpts());
21 }
22 
23