From 0e29729da6a7cb280e66c5da23eccac88ef40f56 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 3 Jan 2014 17:23:10 +0000 Subject: [PATCH] Make clang::ento::CreateAnalysisConsumer a part of a public interface of the static analyzer. Summary: This allows for a better alternative to the FrontendAction hack used in clang-tidy in order to get static analyzer's ASTConsumer. Reviewers: jordan_rose, krememek Reviewed By: jordan_rose CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2505 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198426 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../clang}/StaticAnalyzer/Frontend/AnalysisConsumer.h | 0 lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp | 2 +- lib/StaticAnalyzer/Frontend/FrontendActions.cpp | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename {lib => include/clang}/StaticAnalyzer/Frontend/AnalysisConsumer.h (100%) diff --git a/lib/StaticAnalyzer/Frontend/AnalysisConsumer.h b/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h similarity index 100% rename from lib/StaticAnalyzer/Frontend/AnalysisConsumer.h rename to include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h diff --git a/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp index 709d68a841..d68121f233 100644 --- a/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ b/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp @@ -13,7 +13,7 @@ #define DEBUG_TYPE "AnalysisConsumer" -#include "AnalysisConsumer.h" +#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h" #include "clang/AST/ASTConsumer.h" #include "clang/AST/Decl.h" #include "clang/AST/DeclCXX.h" diff --git a/lib/StaticAnalyzer/Frontend/FrontendActions.cpp b/lib/StaticAnalyzer/Frontend/FrontendActions.cpp index 13971af9af..aa38077326 100644 --- a/lib/StaticAnalyzer/Frontend/FrontendActions.cpp +++ b/lib/StaticAnalyzer/Frontend/FrontendActions.cpp @@ -8,8 +8,8 @@ //===----------------------------------------------------------------------===// #include "clang/StaticAnalyzer/Frontend/FrontendActions.h" -#include "AnalysisConsumer.h" #include "clang/Frontend/CompilerInstance.h" +#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h" using namespace clang; using namespace ento; -- 2.40.0