diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-14 18:13:01 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-14 18:13:01 +0000 |
commit | e817771c57d0eacbe069a314ba619c43d0ac70ab (patch) | |
tree | 5d06e25b52bb5101ab606e41f36209a4cfccab99 /lib/StaticAnalyzer | |
parent | 6a6d9a8eceb9424b18ed4a897dece97e5bf5c297 (diff) |
[analyzer] Introduce libclangStaticAnalyzerFrontend and move Checkers/AnalysisConsumer.cpp into Frontend lib.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer')
-rw-r--r-- | lib/StaticAnalyzer/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/StaticAnalyzer/Checkers/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp (renamed from lib/StaticAnalyzer/Checkers/AnalysisConsumer.cpp) | 4 | ||||
-rw-r--r-- | lib/StaticAnalyzer/Frontend/CMakeLists.txt | 10 | ||||
-rw-r--r-- | lib/StaticAnalyzer/Frontend/Makefile | 17 | ||||
-rw-r--r-- | lib/StaticAnalyzer/Makefile | 2 |
6 files changed, 31 insertions, 4 deletions
diff --git a/lib/StaticAnalyzer/CMakeLists.txt b/lib/StaticAnalyzer/CMakeLists.txt index b2b778a437..3d1509254f 100644 --- a/lib/StaticAnalyzer/CMakeLists.txt +++ b/lib/StaticAnalyzer/CMakeLists.txt @@ -1,2 +1,3 @@ add_subdirectory(Core) add_subdirectory(Checkers) +add_subdirectory(Frontend) diff --git a/lib/StaticAnalyzer/Checkers/CMakeLists.txt b/lib/StaticAnalyzer/Checkers/CMakeLists.txt index 48e5b63341..f363cdef8e 100644 --- a/lib/StaticAnalyzer/Checkers/CMakeLists.txt +++ b/lib/StaticAnalyzer/Checkers/CMakeLists.txt @@ -2,7 +2,6 @@ set(LLVM_USED_LIBS clangBasic clangAST) add_clang_library(clangStaticAnalyzerCheckers AdjustedReturnValueChecker.cpp - AnalysisConsumer.cpp AnalyzerStatsChecker.cpp ArrayBoundChecker.cpp ArrayBoundCheckerV2.cpp diff --git a/lib/StaticAnalyzer/Checkers/AnalysisConsumer.cpp b/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp index 497ae33af0..394280f80c 100644 --- a/lib/StaticAnalyzer/Checkers/AnalysisConsumer.cpp +++ b/lib/StaticAnalyzer/Frontend/AnalysisConsumer.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" diff --git a/lib/StaticAnalyzer/Frontend/CMakeLists.txt b/lib/StaticAnalyzer/Frontend/CMakeLists.txt new file mode 100644 index 0000000000..03b58b1df7 --- /dev/null +++ b/lib/StaticAnalyzer/Frontend/CMakeLists.txt @@ -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) diff --git a/lib/StaticAnalyzer/Frontend/Makefile b/lib/StaticAnalyzer/Frontend/Makefile new file mode 100644 index 0000000000..1e6561e555 --- /dev/null +++ b/lib/StaticAnalyzer/Frontend/Makefile @@ -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 diff --git a/lib/StaticAnalyzer/Makefile b/lib/StaticAnalyzer/Makefile index f762531b82..a23554de21 100644 --- a/lib/StaticAnalyzer/Makefile +++ b/lib/StaticAnalyzer/Makefile @@ -12,6 +12,6 @@ ##===----------------------------------------------------------------------===## CLANG_LEVEL := ../.. -PARALLEL_DIRS := Core Checkers +PARALLEL_DIRS := Core Checkers Frontend include $(CLANG_LEVEL)/Makefile |