]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
[FreeBSD/stable/9.git] / contrib / llvm / tools / clang / lib / StaticAnalyzer / Frontend / FrontendActions.cpp
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