blob: 85a18ec98ead093cb3b8c8b8dfed8e8a523f2d42 [file] [log] [blame]
Daniel Dunbar9b414d32010-06-15 17:48:49 +00001//===--- 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
Argyrios Kyrtzidis43dee222011-02-14 18:13:31 +000010#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
Daniel Dunbar9b414d32010-06-15 17:48:49 +000011#include "clang/Frontend/CompilerInstance.h"
Argyrios Kyrtzidise6348c32011-02-14 18:13:11 +000012#include "AnalysisConsumer.h"
Daniel Dunbar9b414d32010-06-15 17:48:49 +000013using namespace clang;
Ted Kremenek9ef65372010-12-23 07:20:52 +000014using namespace ento;
Daniel Dunbar9b414d32010-06-15 17:48:49 +000015
16ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
Chris Lattner5f9e2722011-07-23 10:55:15 +000017 StringRef InFile) {
Daniel Dunbar9b414d32010-06-15 17:48:49 +000018 return CreateAnalysisConsumer(CI.getPreprocessor(),
19 CI.getFrontendOpts().OutputFile,
Jordy Rose08b86532011-08-16 21:24:21 +000020 CI.getAnalyzerOpts(),
21 CI.getFrontendOpts().Plugins);
Daniel Dunbar9b414d32010-06-15 17:48:49 +000022}
23