]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/lib/StaticAnalyzer/Frontend/FrontendActions.cpp
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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 "AnalysisConsumer.h"
12 #include "clang/Frontend/CompilerInstance.h"
13 using namespace clang;
14 using namespace ento;
15
16 ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
17                                                StringRef InFile) {
18   return CreateAnalysisConsumer(CI.getPreprocessor(),
19                                 CI.getFrontendOpts().OutputFile,
20                                 CI.getAnalyzerOpts(),
21                                 CI.getFrontendOpts().Plugins);
22 }
23