]> granicus.if.org Git - clang/commitdiff
[analyzer] Move the files in lib/StaticAnalyzer to lib/StaticAnalyzer/Core.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 8 Feb 2011 22:30:36 +0000 (22:30 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 8 Feb 2011 22:30:36 +0000 (22:30 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125124 91177308-0d34-0410-b5e6-96231b3b80d8

40 files changed:
lib/CMakeLists.txt
lib/StaticAnalyzer/CMakeLists.txt
lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp [moved from lib/StaticAnalyzer/AnalyzerStatsChecker.cpp with 98% similarity]
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Core/AggExprVisitor.cpp [moved from lib/StaticAnalyzer/AggExprVisitor.cpp with 100% similarity]
lib/StaticAnalyzer/Core/AnalysisManager.cpp [moved from lib/StaticAnalyzer/AnalysisManager.cpp with 100% similarity]
lib/StaticAnalyzer/Core/BasicConstraintManager.cpp [moved from lib/StaticAnalyzer/BasicConstraintManager.cpp with 100% similarity]
lib/StaticAnalyzer/Core/BasicStore.cpp [moved from lib/StaticAnalyzer/BasicStore.cpp with 100% similarity]
lib/StaticAnalyzer/Core/BasicValueFactory.cpp [moved from lib/StaticAnalyzer/BasicValueFactory.cpp with 100% similarity]
lib/StaticAnalyzer/Core/BlockCounter.cpp [moved from lib/StaticAnalyzer/BlockCounter.cpp with 100% similarity]
lib/StaticAnalyzer/Core/BugReporter.cpp [moved from lib/StaticAnalyzer/BugReporter.cpp with 100% similarity]
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp [moved from lib/StaticAnalyzer/BugReporterVisitors.cpp with 100% similarity]
lib/StaticAnalyzer/Core/CFRefCount.cpp [moved from lib/StaticAnalyzer/CFRefCount.cpp with 100% similarity]
lib/StaticAnalyzer/Core/CMakeLists.txt [new file with mode: 0644]
lib/StaticAnalyzer/Core/CXXExprEngine.cpp [moved from lib/StaticAnalyzer/CXXExprEngine.cpp with 100% similarity]
lib/StaticAnalyzer/Core/Checker.cpp [moved from lib/StaticAnalyzer/Checker.cpp with 100% similarity]
lib/StaticAnalyzer/Core/CheckerHelpers.cpp [moved from lib/StaticAnalyzer/CheckerHelpers.cpp with 100% similarity]
lib/StaticAnalyzer/Core/CoreEngine.cpp [moved from lib/StaticAnalyzer/CoreEngine.cpp with 100% similarity]
lib/StaticAnalyzer/Core/Environment.cpp [moved from lib/StaticAnalyzer/Environment.cpp with 100% similarity]
lib/StaticAnalyzer/Core/ExplodedGraph.cpp [moved from lib/StaticAnalyzer/ExplodedGraph.cpp with 100% similarity]
lib/StaticAnalyzer/Core/FlatStore.cpp [moved from lib/StaticAnalyzer/FlatStore.cpp with 100% similarity]
lib/StaticAnalyzer/Core/GRState.cpp [moved from lib/StaticAnalyzer/GRState.cpp with 100% similarity]
lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp [moved from lib/StaticAnalyzer/HTMLDiagnostics.cpp with 100% similarity]
lib/StaticAnalyzer/Core/Makefile [new file with mode: 0644]
lib/StaticAnalyzer/Core/ManagerRegistry.cpp [moved from lib/StaticAnalyzer/ManagerRegistry.cpp with 100% similarity]
lib/StaticAnalyzer/Core/MemRegion.cpp [moved from lib/StaticAnalyzer/MemRegion.cpp with 100% similarity]
lib/StaticAnalyzer/Core/ObjCMessage.cpp [moved from lib/StaticAnalyzer/ObjCMessage.cpp with 100% similarity]
lib/StaticAnalyzer/Core/PathDiagnostic.cpp [moved from lib/StaticAnalyzer/PathDiagnostic.cpp with 100% similarity]
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp [moved from lib/StaticAnalyzer/PlistDiagnostics.cpp with 100% similarity]
lib/StaticAnalyzer/Core/RangeConstraintManager.cpp [moved from lib/StaticAnalyzer/RangeConstraintManager.cpp with 100% similarity]
lib/StaticAnalyzer/Core/RegionStore.cpp [moved from lib/StaticAnalyzer/RegionStore.cpp with 100% similarity]
lib/StaticAnalyzer/Core/SValBuilder.cpp [moved from lib/StaticAnalyzer/SValBuilder.cpp with 100% similarity]
lib/StaticAnalyzer/Core/SVals.cpp [moved from lib/StaticAnalyzer/SVals.cpp with 100% similarity]
lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp [moved from lib/StaticAnalyzer/SimpleConstraintManager.cpp with 100% similarity]
lib/StaticAnalyzer/Core/SimpleConstraintManager.h [moved from lib/StaticAnalyzer/SimpleConstraintManager.h with 100% similarity]
lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp [moved from lib/StaticAnalyzer/SimpleSValBuilder.cpp with 100% similarity]
lib/StaticAnalyzer/Core/Store.cpp [moved from lib/StaticAnalyzer/Store.cpp with 100% similarity]
lib/StaticAnalyzer/Core/SymbolManager.cpp [moved from lib/StaticAnalyzer/SymbolManager.cpp with 100% similarity]
lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp [moved from lib/StaticAnalyzer/TextPathDiagnostics.cpp with 100% similarity]
lib/StaticAnalyzer/Makefile

index a75dd22386b5e6a2756e1585df4f000a27ac30f2..b4574344bc5f259bc3cd92561db91926d400031a 100644 (file)
@@ -13,4 +13,3 @@ add_subdirectory(Frontend)
 add_subdirectory(FrontendTool)
 add_subdirectory(Index)
 add_subdirectory(StaticAnalyzer)
-add_subdirectory(StaticAnalyzer/Checkers)
index 352138599ecc3c26db7f171d4924a89492e9a1b2..b2b778a4376a657b985f4c927388223263206364 100644 (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)
similarity index 98%
rename from lib/StaticAnalyzer/AnalyzerStatsChecker.cpp
rename to lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
index 24a73cbb238a7485d86308eb366529ab5abf8386..26d0e02c3118b51271b5b9c9f5ec53f9843f5e95 100644 (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"
index cf6e9760ee178163f178c4703c827b70d522fc54..9a6ad7fbf812c97d34a19bb160ec9d3799113b12 100644 (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
diff --git a/lib/StaticAnalyzer/Core/CMakeLists.txt b/lib/StaticAnalyzer/Core/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5fc72fb
--- /dev/null
@@ -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)
diff --git a/lib/StaticAnalyzer/Core/Makefile b/lib/StaticAnalyzer/Core/Makefile
new file mode 100644 (file)
index 0000000..4aebc16
--- /dev/null
@@ -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
index 08ace28e35c7e2cae195a173e653774b3fb185bf..f762531b82318e492d0131a5a4eaea3e0e5c3efa 100644 (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
-