opnsense-src/lib/StaticAnalyzer/Frontend/FrontendActions.cpp

24 lines
897 B
C++
Raw Normal View History

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