[cfe-commits] r53413 - in /cfe/trunk: include/clang/Analysis/PathSensitive/AnnotatedPath.h lib/Analysis/BasicObjCFoundationChecks.h

Ted Kremenek kremenek at apple.com
Thu Jul 10 10:25:03 PDT 2008


Author: kremenek
Date: Thu Jul 10 12:25:03 2008
New Revision: 53413

URL: http://llvm.org/viewvc/llvm-project?rev=53413&view=rev
Log:
Remove unused class AnnotatedPath.

Removed:
    cfe/trunk/include/clang/Analysis/PathSensitive/AnnotatedPath.h
Modified:
    cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.h

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

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/AnnotatedPath.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/AnnotatedPath.h (removed)
@@ -1,67 +0,0 @@
-//=-- AnnotatedPath.h - An annotated list of ExplodedNodes -*- C++ -*-------==//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-//  This file defines AnnotatedPath, which represents a collection of
-//  annotated ExplodedNodes.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_CLANG_ANALYSIS_ANNOTPATH
-#define LLVM_CLANG_ANALYSIS_ANNOTPATH
-
-#include "clang/Analysis/PathSensitive/ExplodedGraph.h"
-#include <string>
-#include <list>
-
-namespace clang {
-
-  class Expr;
-
-template <typename STATE>
-class AnnotatedNode {
-  ExplodedNode<STATE> *Node;
-  std::string annotation;
-  Expr* E;
-
-public:
-  AnnotatedNode(ExplodedNode<STATE>* N, const std::string& annot,
-                Expr* e = NULL)
-  : Node(N), annotation(annot), E(e) {}
-
-  ExplodedNode<STATE>* getNode() const { return Node; }
-  
-  const std::string& getString() const { return annotation; }
-  
-  Expr* getExpr() const { return E; }
-};
-  
-
-template <typename STATE>
-class AnnotatedPath {
-  typedef std::list<AnnotatedNode<STATE> >  impl;
-  impl path;
-public:
-  AnnotatedPath() {}
-  
-  void push_back(ExplodedNode<STATE>* N, const std::string& s, Expr* E = NULL) {
-    path.push_back(AnnotatedNode<STATE>(N, s, E));
-  }
-  
-  typedef typename impl::iterator iterator;
-  
-  iterator begin() { return path.begin(); }
-  iterator end() { return path.end(); }
-  
-  AnnotatedNode<STATE>& back() { return path.back(); }
-  const AnnotatedNode<STATE>& back() const { return path.back(); }
-};
-  
-} // end clang namespace
-
-#endif

Modified: cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.h?rev=53413&r1=53412&r2=53413&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.h (original)
+++ cfe/trunk/lib/Analysis/BasicObjCFoundationChecks.h Thu Jul 10 12:25:03 2008
@@ -16,7 +16,6 @@
 #include "clang/Analysis/PathSensitive/ExplodedGraph.h"
 #include "clang/Analysis/PathSensitive/GRSimpleAPICheck.h"
 #include "clang/Analysis/PathSensitive/ValueState.h"
-#include "clang/Analysis/PathSensitive/AnnotatedPath.h"
 #include "clang/Analysis/PathDiagnostic.h"
 #include "clang/AST/Expr.h"
 #include "clang/AST/ASTContext.h"





More information about the cfe-commits mailing list