2010-07-13 13:21:42 -04: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-20 08:06:31 -05:00
|
|
|
#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
|
2010-07-13 13:21:42 -04:00
|
|
|
#include "clang/Frontend/CompilerInstance.h"
|
2011-02-20 08:06:31 -05:00
|
|
|
#include "AnalysisConsumer.h"
|
2010-07-13 13:21:42 -04:00
|
|
|
using namespace clang;
|
2011-02-20 08:06:31 -05:00
|
|
|
using namespace ento;
|
2010-07-13 13:21:42 -04:00
|
|
|
|
|
|
|
|
ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
|
2011-10-20 17:14:49 -04:00
|
|
|
StringRef InFile) {
|
2010-07-13 13:21:42 -04:00
|
|
|
return CreateAnalysisConsumer(CI.getPreprocessor(),
|
|
|
|
|
CI.getFrontendOpts().OutputFile,
|
2011-10-20 17:14:49 -04:00
|
|
|
CI.getAnalyzerOpts(),
|
|
|
|
|
CI.getFrontendOpts().Plugins);
|
2010-07-13 13:21:42 -04:00
|
|
|
}
|
|
|
|
|
|