clang API Documentation

StaticAnalyzer/Frontend/FrontendActions.cpp
Go to the documentation of this file.
00001 //===--- FrontendActions.cpp ----------------------------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
00011 #include "clang/Frontend/CompilerInstance.h"
00012 #include "AnalysisConsumer.h"
00013 using namespace clang;
00014 using namespace ento;
00015 
00016 ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
00017                                                StringRef InFile) {
00018   return CreateAnalysisConsumer(CI.getPreprocessor(),
00019                                 CI.getFrontendOpts().OutputFile,
00020                                 CI.getAnalyzerOpts(),
00021                                 CI.getFrontendOpts().Plugins);
00022 }
00023