Home | History | Annotate | Download | only in Frontend
      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 "clang/StaticAnalyzer/Frontend/AnalysisConsumer.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 
     24