From 976d1e0ea8ac4b96c2ef6ccea663bef545987555 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 10 Jul 2008 17:25:03 +0000 Subject: [PATCH] Remove unused class AnnotatedPath. llvm-svn: 53413 --- .../Analysis/PathSensitive/AnnotatedPath.h | 67 ------------------- .../lib/Analysis/BasicObjCFoundationChecks.h | 1 - 2 files changed, 68 deletions(-) delete mode 100644 clang/include/clang/Analysis/PathSensitive/AnnotatedPath.h diff --git a/clang/include/clang/Analysis/PathSensitive/AnnotatedPath.h b/clang/include/clang/Analysis/PathSensitive/AnnotatedPath.h deleted file mode 100644 index 3873bd45d290..000000000000 --- a/clang/include/clang/Analysis/PathSensitive/AnnotatedPath.h +++ /dev/null @@ -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 -#include - -namespace clang { - - class Expr; - -template -class AnnotatedNode { - ExplodedNode *Node; - std::string annotation; - Expr* E; - -public: - AnnotatedNode(ExplodedNode* N, const std::string& annot, - Expr* e = NULL) - : Node(N), annotation(annot), E(e) {} - - ExplodedNode* getNode() const { return Node; } - - const std::string& getString() const { return annotation; } - - Expr* getExpr() const { return E; } -}; - - -template -class AnnotatedPath { - typedef std::list > impl; - impl path; -public: - AnnotatedPath() {} - - void push_back(ExplodedNode* N, const std::string& s, Expr* E = NULL) { - path.push_back(AnnotatedNode(N, s, E)); - } - - typedef typename impl::iterator iterator; - - iterator begin() { return path.begin(); } - iterator end() { return path.end(); } - - AnnotatedNode& back() { return path.back(); } - const AnnotatedNode& back() const { return path.back(); } -}; - -} // end clang namespace - -#endif diff --git a/clang/lib/Analysis/BasicObjCFoundationChecks.h b/clang/lib/Analysis/BasicObjCFoundationChecks.h index fafb025b549d..a0c0409f28e2 100644 --- a/clang/lib/Analysis/BasicObjCFoundationChecks.h +++ b/clang/lib/Analysis/BasicObjCFoundationChecks.h @@ -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"