[cfe-commits] r85596 - in /cfe/trunk: include/clang/Analysis/PathSensitive/Checkers/ include/clang/Analysis/PathSensitive/Checkers/NullDerefChecker.h include/clang/Analysis/PathSensitive/NullDerefChecker.h lib/Analysis/CheckNSError.cpp lib/Analysis/GRExprEngineInternalChecks.cpp lib/Analysis/NullDerefChecker.cpp

Ted Kremenek kremenek at apple.com
Fri Oct 30 10:28:40 PDT 2009


Author: kremenek
Date: Fri Oct 30 12:28:40 2009
New Revision: 85596

URL: http://llvm.org/viewvc/llvm-project?rev=85596&view=rev
Log:
Move NullDerefChecker.h instead a 'Checkers' subdirectory.

Added:
    cfe/trunk/include/clang/Analysis/PathSensitive/Checkers/
    cfe/trunk/include/clang/Analysis/PathSensitive/Checkers/NullDerefChecker.h
      - copied unchanged from r85595, cfe/trunk/include/clang/Analysis/PathSensitive/NullDerefChecker.h
Removed:
    cfe/trunk/include/clang/Analysis/PathSensitive/NullDerefChecker.h
Modified:
    cfe/trunk/lib/Analysis/CheckNSError.cpp
    cfe/trunk/lib/Analysis/GRExprEngineInternalChecks.cpp
    cfe/trunk/lib/Analysis/NullDerefChecker.cpp

Removed: cfe/trunk/include/clang/Analysis/PathSensitive/NullDerefChecker.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/NullDerefChecker.h?rev=85595&view=auto

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/NullDerefChecker.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/NullDerefChecker.h (removed)
@@ -1,41 +0,0 @@
-//== NullDerefChecker.h - Null dereference checker --------------*- C++ -*--==//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This defines NullDerefChecker, a builtin check in GRExprEngine that performs
-// checks for null pointers at loads and stores.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_CLANG_NULLDEREFCHECKER
-#define LLVM_CLANG_NULLDEREFCHECKER
-
-#include "clang/Analysis/PathSensitive/Checker.h"
-#include "clang/Analysis/PathSensitive/BugType.h"
-
-namespace clang {
-
-class ExplodedNode;
-
-class NullDerefChecker : public Checker {
-  BuiltinBug *BT;
-  llvm::SmallVector<ExplodedNode*, 2> ImplicitNullDerefNodes;
-
-public:
-  NullDerefChecker() : BT(0) {}
-  ExplodedNode *CheckLocation(const Stmt *S, ExplodedNode *Pred,
-                              const GRState *state, SVal V,GRExprEngine &Eng);
-
-  static void *getTag();
-  typedef llvm::SmallVectorImpl<ExplodedNode*>::iterator iterator;
-  iterator implicit_nodes_begin() { return ImplicitNullDerefNodes.begin(); }
-  iterator implicit_nodes_end() { return ImplicitNullDerefNodes.end(); }
-};
-
-} // end clang namespace
-#endif

Modified: cfe/trunk/lib/Analysis/CheckNSError.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckNSError.cpp?rev=85596&r1=85595&r2=85596&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CheckNSError.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckNSError.cpp Fri Oct 30 12:28:40 2009
@@ -18,7 +18,7 @@
 #include "clang/Analysis/LocalCheckers.h"
 #include "clang/Analysis/PathSensitive/BugReporter.h"
 #include "clang/Analysis/PathSensitive/GRExprEngine.h"
-#include "clang/Analysis/PathSensitive/NullDerefChecker.h"
+#include "clang/Analysis/PathSensitive/Checkers/NullDerefChecker.h"
 #include "BasicObjCFoundationChecks.h"
 #include "llvm/Support/Compiler.h"
 #include "clang/AST/DeclObjC.h"

Modified: cfe/trunk/lib/Analysis/GRExprEngineInternalChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/GRExprEngineInternalChecks.cpp?rev=85596&r1=85595&r2=85596&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/GRExprEngineInternalChecks.cpp (original)
+++ cfe/trunk/lib/Analysis/GRExprEngineInternalChecks.cpp Fri Oct 30 12:28:40 2009
@@ -15,7 +15,7 @@
 #include "clang/Analysis/PathSensitive/BugReporter.h"
 #include "clang/Analysis/PathSensitive/GRExprEngine.h"
 #include "clang/Analysis/PathSensitive/CheckerVisitor.h"
-#include "clang/Analysis/PathSensitive/NullDerefChecker.h"
+#include "clang/Analysis/PathSensitive/Checkers/NullDerefChecker.h"
 #include "clang/Analysis/PathDiagnostic.h"
 #include "clang/Basic/SourceManager.h"
 #include "llvm/Support/Compiler.h"

Modified: cfe/trunk/lib/Analysis/NullDerefChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/NullDerefChecker.cpp?rev=85596&r1=85595&r2=85596&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/NullDerefChecker.cpp (original)
+++ cfe/trunk/lib/Analysis/NullDerefChecker.cpp Fri Oct 30 12:28:40 2009
@@ -12,7 +12,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Analysis/PathSensitive/NullDerefChecker.h"
+#include "clang/Analysis/PathSensitive/Checkers/NullDerefChecker.h"
 #include "clang/Analysis/PathSensitive/GRExprEngine.h"
 #include "clang/Analysis/PathSensitive/BugReporter.h"
 





More information about the cfe-commits mailing list