2010-06-16 01:48:49 +08:00
|
|
|
//===--- FrontendActions.cpp ----------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2011-02-15 02:13:31 +08:00
|
|
|
#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
|
2010-06-16 01:48:49 +08:00
|
|
|
#include "clang/Frontend/CompilerInstance.h"
|
2011-02-15 02:13:11 +08:00
|
|
|
#include "AnalysisConsumer.h"
|
2010-06-16 01:48:49 +08:00
|
|
|
using namespace clang;
|
2010-12-23 15:20:52 +08:00
|
|
|
using namespace ento;
|
2010-06-16 01:48:49 +08:00
|
|
|
|
|
|
|
ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
|
|
|
|
llvm::StringRef InFile) {
|
|
|
|
return CreateAnalysisConsumer(CI.getPreprocessor(),
|
|
|
|
CI.getFrontendOpts().OutputFile,
|
|
|
|
CI.getAnalyzerOpts());
|
|
|
|
}
|
|
|
|
|