[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:
Argyrios Kyrtzidis 2011-02-08 22:30:36 +00:00
parent 4975170267
commit fa0734ec4f
40 changed files with 64 additions and 48 deletions

View File

@ -13,4 +13,3 @@ add_subdirectory(Frontend)
add_subdirectory(FrontendTool)
add_subdirectory(Index)
add_subdirectory(StaticAnalyzer)
add_subdirectory(StaticAnalyzer/Checkers)

View File

@ -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)

View File

@ -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"

View File

@ -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

View 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)

View 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

View File

@ -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