FrontendActions.cpp 897 B

1234567891011121314151617181920212223
  1. //===--- FrontendActions.cpp ----------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
  10. #include "clang/Frontend/CompilerInstance.h"
  11. #include "AnalysisConsumer.h"
  12. using namespace clang;
  13. using namespace ento;
  14. ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
  15. StringRef InFile) {
  16. return CreateAnalysisConsumer(CI.getPreprocessor(),
  17. CI.getFrontendOpts().OutputFile,
  18. CI.getAnalyzerOpts(),
  19. CI.getFrontendOpts().Plugins);
  20. }