]> granicus.if.org Git - clang/commitdiff
Move CocoaConventions.[h,cpp] from libChecker
authorTed Kremenek <kremenek@apple.com>
Fri, 17 Dec 2010 05:21:58 +0000 (05:21 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 17 Dec 2010 05:21:58 +0000 (05:21 +0000)
to libAnalysis.  Similar to Format (format string checking),
CocoaConventions has the
potential to serve clients other than the
static analyzer.

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

include/clang/Analysis/DomainSpecific/CocoaConventions.h [moved from include/clang/Checker/DomainSpecific/CocoaConventions.h with 92% similarity]
lib/Analysis/CMakeLists.txt
lib/Analysis/CocoaConventions.cpp [moved from lib/Checker/CocoaConventions.cpp with 98% similarity]
lib/Checker/CFRefCount.cpp
lib/Checker/CMakeLists.txt

similarity index 92%
rename from include/clang/Checker/DomainSpecific/CocoaConventions.h
rename to include/clang/Analysis/DomainSpecific/CocoaConventions.h
index 4bbdab0e7fe1b2f8bb6bbfd6323770028472a70a..81b71a7bdcea94e4a9076ae6f12363c44e772ca4 100644 (file)
@@ -11,8 +11,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_CLANG_CHECKER_DS_COCOA
-#define LLVM_CLANG_CHECKER_DS_COCOA
+#ifndef LLVM_CLANG_ANALYSIS_DS_COCOA
+#define LLVM_CLANG_ANALYSIS_DS_COCOA
 
 #include "clang/AST/Type.h"
 
index a2cfcfc4fa12483c90a3fc9c4ea7020b127d480c..1709f6d6b78fc85c1d776a31478afe4590537971 100644 (file)
@@ -6,6 +6,7 @@ add_clang_library(clangAnalysis
   AnalysisContext.cpp
   CFG.cpp
   CFGStmtMap.cpp
+  CocoaConventions.cpp
   FormatString.cpp
   LiveVariables.cpp
   PrintfFormatString.cpp
similarity index 98%
rename from lib/Checker/CocoaConventions.cpp
rename to lib/Analysis/CocoaConventions.cpp
index 8a3abc8bae7e6e61ece3e6fb33c56307cf4fa3eb..9a1be3ee05995c201f471ebabfc793e5f483a73d 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Checker/DomainSpecific/CocoaConventions.h"
+#include "clang/Analysis/DomainSpecific/CocoaConventions.h"
 #include "clang/AST/Type.h"
 #include "clang/AST/Decl.h"
 #include "clang/AST/DeclObjC.h"
index d9900c5dfb8a30f2c0244065f823143b9aa37356..5715e34e7ed35bf2b1237186ec4dae8f165313d1 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/Checker/BugReporter/BugType.h"
 #include "clang/Checker/BugReporter/PathDiagnostic.h"
 #include "clang/Checker/Checkers/LocalCheckers.h"
-#include "clang/Checker/DomainSpecific/CocoaConventions.h"
+#include "clang/Analysis/DomainSpecific/CocoaConventions.h"
 #include "clang/Checker/PathSensitive/CheckerVisitor.h"
 #include "clang/Checker/PathSensitive/GRExprEngineBuilders.h"
 #include "clang/Checker/PathSensitive/GRStateTrait.h"
index 24383662f31ca8cdb25a829e3094e17e68fa894d..c6b4550b7376b1b73e6903879c83bfa650641c0f 100644 (file)
@@ -30,7 +30,6 @@ add_clang_library(clangChecker
   Checker.cpp
   CheckerHelpers.cpp
   ChrootChecker.cpp
-  CocoaConventions.cpp
   DereferenceChecker.cpp
   DivZeroChecker.cpp
   Environment.cpp