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"
|
2011-02-15 02:13:11 +08:00
|
|
|
#include "AnalysisConsumer.h"
|
2012-12-04 17:13:33 +08:00
|
|
|
#include "clang/Frontend/CompilerInstance.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,
|
2011-07-23 18:55:15 +08:00
|
|
|
StringRef InFile) {
|
2010-06-16 01:48:49 +08:00
|
|
|
return CreateAnalysisConsumer(CI.getPreprocessor(),
|
|
|
|
CI.getFrontendOpts().OutputFile,
|
2011-08-17 05:24:21 +08:00
|
|
|
CI.getAnalyzerOpts(),
|
|
|
|
CI.getFrontendOpts().Plugins);
|
2010-06-16 01:48:49 +08:00
|
|
|
}
|
|
|
|
|