mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-15 23:40:54 +00:00
[analyzer] Move the files in lib/StaticAnalyzer to lib/StaticAnalyzer/Core.
Eventually there will also be a lib/StaticAnalyzer/Frontend that will handle initialization and checker registration. Yet another library to avoid cyclic dependencies between Core and Checkers. llvm-svn: 125124
This commit is contained in:
parent
4975170267
commit
fa0734ec4f
@ -13,4 +13,3 @@ add_subdirectory(Frontend)
|
||||
add_subdirectory(FrontendTool)
|
||||
add_subdirectory(Index)
|
||||
add_subdirectory(StaticAnalyzer)
|
||||
add_subdirectory(StaticAnalyzer/Checkers)
|
||||
|
@ -1,42 +1,2 @@
|
||||
set(LLVM_NO_RTTI 1)
|
||||
|
||||
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
|
||||
|
||||
add_clang_library(clangStaticAnalyzerCore
|
||||
AggExprVisitor.cpp
|
||||
AnalysisManager.cpp
|
||||
AnalyzerStatsChecker.cpp
|
||||
BasicConstraintManager.cpp
|
||||
BasicStore.cpp
|
||||
BasicValueFactory.cpp
|
||||
BugReporter.cpp
|
||||
BugReporterVisitors.cpp
|
||||
CFRefCount.cpp
|
||||
Checker.cpp
|
||||
CheckerHelpers.cpp
|
||||
Environment.cpp
|
||||
ExplodedGraph.cpp
|
||||
FlatStore.cpp
|
||||
BlockCounter.cpp
|
||||
CXXExprEngine.cpp
|
||||
CoreEngine.cpp
|
||||
GRState.cpp
|
||||
HTMLDiagnostics.cpp
|
||||
ManagerRegistry.cpp
|
||||
MemRegion.cpp
|
||||
ObjCMessage.cpp
|
||||
PathDiagnostic.cpp
|
||||
PlistDiagnostics.cpp
|
||||
RangeConstraintManager.cpp
|
||||
RegionStore.cpp
|
||||
SimpleConstraintManager.cpp
|
||||
SimpleSValBuilder.cpp
|
||||
Store.cpp
|
||||
SValBuilder.cpp
|
||||
SVals.cpp
|
||||
SymbolManager.cpp
|
||||
TextPathDiagnostics.cpp
|
||||
)
|
||||
|
||||
add_dependencies(clangStaticAnalyzerCore ClangAttrClasses ClangAttrList ClangDeclNodes
|
||||
ClangStmtNodes)
|
||||
add_subdirectory(Core)
|
||||
add_subdirectory(Checkers)
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "clang/StaticAnalyzer/BugReporter/BugReporter.h"
|
||||
|
||||
// FIXME: Restructure checker registration.
|
||||
#include "Checkers/ExperimentalChecks.h"
|
||||
#include "ExperimentalChecks.h"
|
||||
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
@ -5,6 +5,7 @@ set(LLVM_USED_LIBS clangBasic clangAST)
|
||||
add_clang_library(clangStaticAnalyzerCheckers
|
||||
AdjustedReturnValueChecker.cpp
|
||||
AnalysisConsumer.cpp
|
||||
AnalyzerStatsChecker.cpp
|
||||
ArrayBoundChecker.cpp
|
||||
ArrayBoundCheckerV2.cpp
|
||||
AttrNonNullChecker.cpp
|
||||
|
41
clang/lib/StaticAnalyzer/Core/CMakeLists.txt
Normal file
41
clang/lib/StaticAnalyzer/Core/CMakeLists.txt
Normal file
@ -0,0 +1,41 @@
|
||||
set(LLVM_NO_RTTI 1)
|
||||
|
||||
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
|
||||
|
||||
add_clang_library(clangStaticAnalyzerCore
|
||||
AggExprVisitor.cpp
|
||||
AnalysisManager.cpp
|
||||
BasicConstraintManager.cpp
|
||||
BasicStore.cpp
|
||||
BasicValueFactory.cpp
|
||||
BugReporter.cpp
|
||||
BugReporterVisitors.cpp
|
||||
CFRefCount.cpp
|
||||
Checker.cpp
|
||||
CheckerHelpers.cpp
|
||||
Environment.cpp
|
||||
ExplodedGraph.cpp
|
||||
FlatStore.cpp
|
||||
BlockCounter.cpp
|
||||
CXXExprEngine.cpp
|
||||
CoreEngine.cpp
|
||||
GRState.cpp
|
||||
HTMLDiagnostics.cpp
|
||||
ManagerRegistry.cpp
|
||||
MemRegion.cpp
|
||||
ObjCMessage.cpp
|
||||
PathDiagnostic.cpp
|
||||
PlistDiagnostics.cpp
|
||||
RangeConstraintManager.cpp
|
||||
RegionStore.cpp
|
||||
SimpleConstraintManager.cpp
|
||||
SimpleSValBuilder.cpp
|
||||
Store.cpp
|
||||
SValBuilder.cpp
|
||||
SVals.cpp
|
||||
SymbolManager.cpp
|
||||
TextPathDiagnostics.cpp
|
||||
)
|
||||
|
||||
add_dependencies(clangStaticAnalyzerCore ClangAttrClasses ClangAttrList ClangDeclNodes
|
||||
ClangStmtNodes)
|
17
clang/lib/StaticAnalyzer/Core/Makefile
Normal file
17
clang/lib/StaticAnalyzer/Core/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
##===- clang/lib/StaticAnalyzer/Core/Makefile --------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
#
|
||||
# This implements analyses built on top of source-level CFGs.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLANG_LEVEL := ../../..
|
||||
LIBRARYNAME := clangStaticAnalyzerCore
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
@ -1,4 +1,4 @@
|
||||
##===- clang/lib/Checker/Makefile --------------------------*- Makefile -*-===##
|
||||
##===- clang/lib/StaticAnalyzer/Makefile -------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
@ -12,8 +12,6 @@
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
CLANG_LEVEL := ../..
|
||||
LIBRARYNAME := clangStaticAnalyzerCore
|
||||
PARALLEL_DIRS := Checkers
|
||||
PARALLEL_DIRS := Core Checkers
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user