19b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar//===--- FrontendActions.cpp ----------------------------------------------===//
29b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar//
39b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar//                     The LLVM Compiler Infrastructure
49b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar//
59b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar// This file is distributed under the University of Illinois Open Source
69b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar// License. See LICENSE.TXT for details.
79b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar//
89b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar//===----------------------------------------------------------------------===//
99b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar
1043dee220252ef0b42c5f8a3bb1eca97f84f2565fArgyrios Kyrtzidis#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
1155fc873017f10f6f566b182b70f6fc22aefa3464Chandler Carruth#include "clang/Frontend/CompilerInstance.h"
12651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"
139b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbarusing namespace clang;
149ef6537a894c33003359b1f9b9676e9178e028b7Ted Kremenekusing namespace ento;
159b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar
169b414d3e2d0cb84512b55a3275a98490b090162aDaniel DunbarASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
175f9e272e632e951b1efe824cd16acb4d96077930Chris Lattner                                               StringRef InFile) {
189b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar  return CreateAnalysisConsumer(CI.getPreprocessor(),
199b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar                                CI.getFrontendOpts().OutputFile,
2008b86531ade68727c56918f162816075b87c864aJordy Rose                                CI.getAnalyzerOpts(),
2108b86531ade68727c56918f162816075b87c864aJordy Rose                                CI.getFrontendOpts().Plugins);
229b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar}
239b414d3e2d0cb84512b55a3275a98490b090162aDaniel Dunbar
24