Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 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/Checker/FrontendActions.h" |
| 11 | #include "clang/Frontend/CompilerInstance.h" |
| 12 | #include "clang/Checker/AnalysisConsumer.h" |
| 13 | using namespace clang; |
| 14 | |
| 15 | ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI, |
| 16 | llvm::StringRef InFile) { |
| 17 | return CreateAnalysisConsumer(CI.getPreprocessor(), |
| 18 | CI.getFrontendOpts().OutputFile, |
| 19 | CI.getAnalyzerOpts()); |
| 20 | } |
| 21 | |