mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 13:50:11 +00:00
[analyzer] Introduce libclangStaticAnalyzerFrontend and move Checkers/AnalysisConsumer.cpp into Frontend lib.
llvm-svn: 125499
This commit is contained in:
parent
bd356a8011
commit
ecd3334dac
@ -8,6 +8,7 @@ set( LLVM_USED_LIBS
|
||||
clangCodeGen
|
||||
clangParse
|
||||
clangSema
|
||||
clangStaticAnalyzerFrontend
|
||||
clangStaticAnalyzerCheckers
|
||||
clangStaticAnalyzerCore
|
||||
clangAnalysis
|
||||
|
@ -4,6 +4,7 @@ set(LLVM_USED_LIBS
|
||||
clangDriver
|
||||
clangCodeGen
|
||||
clangSema
|
||||
clangStaticAnalyzerFrontend
|
||||
clangStaticAnalyzerCheckers
|
||||
clangStaticAnalyzerCore
|
||||
clangIndex
|
||||
|
@ -18,7 +18,7 @@ TOOL_NO_EXPORTS = 1
|
||||
LINK_COMPONENTS := jit interpreter nativecodegen bitreader bitwriter ipo \
|
||||
selectiondag asmparser
|
||||
USEDLIBS = clangFrontend.a clangSerialization.a clangDriver.a clangCodeGen.a \
|
||||
clangSema.a clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a clangAnalysis.a clangRewrite.a \
|
||||
clangSema.a clangStaticAnalyzerFrontend.a clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a clangAnalysis.a clangRewrite.a \
|
||||
clangAST.a clangParse.a clangLex.a clangBasic.a
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
@ -5,6 +5,7 @@ set(LLVM_USED_LIBS
|
||||
clangSema
|
||||
clangAnalysis
|
||||
clangSerialization
|
||||
clangStaticAnalyzerFrontend
|
||||
clangStaticAnalyzerCheckers
|
||||
clangStaticAnalyzerCore
|
||||
clangRewrite
|
||||
|
@ -16,7 +16,7 @@ NO_INSTALL = 1
|
||||
TOOL_NO_EXPORTS = 1
|
||||
|
||||
LINK_COMPONENTS := asmparser bitreader mc core
|
||||
USEDLIBS = clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a clangIndex.a clangFrontend.a clangDriver.a \
|
||||
USEDLIBS = clangStaticAnalyzerFrontend.a clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a clangIndex.a clangFrontend.a clangDriver.a \
|
||||
clangSema.a clangAnalysis.a clangSerialization.a \
|
||||
clangAST.a clangParse.a clangLex.a clangBasic.a
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
set(LLVM_USED_LIBS clangDriver clangFrontend clangRewrite clangCodeGen
|
||||
clangStaticAnalyzerCheckers clangStaticAnalyzerCore)
|
||||
clangStaticAnalyzerFrontend clangStaticAnalyzerCheckers clangStaticAnalyzerCore)
|
||||
|
||||
add_clang_library(clangFrontendTool
|
||||
ExecuteCompilerInvocation.cpp
|
||||
|
@ -1,2 +1,3 @@
|
||||
add_subdirectory(Core)
|
||||
add_subdirectory(Checkers)
|
||||
add_subdirectory(Frontend)
|
||||
|
@ -2,7 +2,6 @@ set(LLVM_USED_LIBS clangBasic clangAST)
|
||||
|
||||
add_clang_library(clangStaticAnalyzerCheckers
|
||||
AdjustedReturnValueChecker.cpp
|
||||
AnalysisConsumer.cpp
|
||||
AnalyzerStatsChecker.cpp
|
||||
ArrayBoundChecker.cpp
|
||||
ArrayBoundCheckerV2.cpp
|
||||
|
@ -30,8 +30,8 @@
|
||||
#include "clang/StaticAnalyzer/Core/PathDiagnosticClients.h"
|
||||
|
||||
// FIXME: Restructure checker registration.
|
||||
#include "ExperimentalChecks.h"
|
||||
#include "InternalChecks.h"
|
||||
#include "../Checkers/ExperimentalChecks.h"
|
||||
#include "../Checkers/InternalChecks.h"
|
||||
|
||||
#include "clang/Basic/FileManager.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
10
clang/lib/StaticAnalyzer/Frontend/CMakeLists.txt
Normal file
10
clang/lib/StaticAnalyzer/Frontend/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
set(LLVM_NO_RTTI 1)
|
||||
|
||||
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
|
||||
|
||||
add_clang_library(clangStaticAnalyzerFrontend
|
||||
AnalysisConsumer.cpp
|
||||
)
|
||||
|
||||
add_dependencies(clangStaticAnalyzerCheckers clangStaticAnalyzerCore ClangAttrClasses ClangAttrList ClangDeclNodes
|
||||
ClangStmtNodes)
|
17
clang/lib/StaticAnalyzer/Frontend/Makefile
Normal file
17
clang/lib/StaticAnalyzer/Frontend/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
##===- clang/lib/StaticAnalyzer/Frontend/Makefile ----------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
#
|
||||
# Starting point into the static analyzer land for the driver.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLANG_LEVEL := ../../..
|
||||
LIBRARYNAME := clangStaticAnalyzerFrontend
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
@ -12,6 +12,6 @@
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLANG_LEVEL := ../..
|
||||
PARALLEL_DIRS := Core Checkers
|
||||
PARALLEL_DIRS := Core Checkers Frontend
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
@ -12,6 +12,7 @@ set( LLVM_USED_LIBS
|
||||
clangRewrite
|
||||
clangSema
|
||||
clangSerialization
|
||||
clangStaticAnalyzerFrontend
|
||||
clangStaticAnalyzerCheckers
|
||||
clangStaticAnalyzerCore
|
||||
)
|
||||
|
@ -39,7 +39,8 @@ LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \
|
||||
ipo selectiondag
|
||||
USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \
|
||||
clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \
|
||||
clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \
|
||||
clangStaticAnalyzerFrontend.a clangStaticAnalyzerCheckers.a \
|
||||
clangStaticAnalyzerCore.a \
|
||||
clangAnalysis.a clangIndex.a clangRewrite.a \
|
||||
clangAST.a clangLex.a clangBasic.a
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user