blob: b0e8e5d9bb1320eb1a6d93b9f702e8aee5618791 [file] [log] [blame]
//===--- FrontendActions.cpp ----------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "clang/StaticAnalyzer/FrontendActions.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/StaticAnalyzer/AnalysisConsumer.h"
using namespace clang;
using namespace ento;
ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
llvm::StringRef InFile) {
return CreateAnalysisConsumer(CI.getPreprocessor(),
CI.getFrontendOpts().OutputFile,
CI.getAnalyzerOpts());
}