[cfe-commits] r67840 - /cfe/trunk/include/clang/Analysis/PathDiagnostic.h

Ted Kremenek kremenek at apple.com
Fri Mar 27 07:59:06 PDT 2009


Author: kremenek
Date: Fri Mar 27 09:59:04 2009
New Revision: 67840

URL: http://llvm.org/viewvc/llvm-project?rev=67840&view=rev
Log:
PathDiagnostic: replace 'std::list' with 'std::deque'

Modified:
    cfe/trunk/include/clang/Analysis/PathDiagnostic.h

Modified: cfe/trunk/include/clang/Analysis/PathDiagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathDiagnostic.h?rev=67840&r1=67839&r2=67840&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathDiagnostic.h (original)
+++ cfe/trunk/include/clang/Analysis/PathDiagnostic.h Fri Mar 27 09:59:04 2009
@@ -19,7 +19,7 @@
 #include "llvm/ADT/OwningPtr.h"
 
 #include <vector>
-#include <list>
+#include <deque>
 #include <string>
 #include <algorithm>
 
@@ -42,7 +42,7 @@
   
   virtual void HandlePathDiagnostic(const PathDiagnostic* D) = 0;
   
-  virtual bool supportsLogicalOpControlFlow() const { return false; }  
+  virtual bool supportsLogicalOpControlFlow() const { return false; }
 };  
   
 //===----------------------------------------------------------------------===//
@@ -85,12 +85,12 @@
 };
 
 class PathDiagnostic {
-  std::list<PathDiagnosticPiece*> path;
+  std::deque<PathDiagnosticPiece*> path;
   unsigned Size;
   std::string BugType;
   std::string Desc;
   std::string Category;
-  std::list<std::string> OtherDesc;
+  std::deque<std::string> OtherDesc;
   
 public:  
   PathDiagnostic();
@@ -106,7 +106,7 @@
   const std::string& getBugType() const { return BugType; }
   const std::string& getCategory() const { return Category; }  
   
-  typedef std::list<std::string>::const_iterator meta_iterator;
+  typedef std::deque<std::string>::const_iterator meta_iterator;
   meta_iterator meta_begin() const { return OtherDesc.begin(); }
   meta_iterator meta_end() const { return OtherDesc.end(); }
   void addMeta(const std::string& s) { OtherDesc.push_back(s); }
@@ -137,7 +137,7 @@
   
   class iterator {
   public:  
-    typedef std::list<PathDiagnosticPiece*>::iterator ImplTy;
+    typedef std::deque<PathDiagnosticPiece*>::iterator ImplTy;
     
     typedef PathDiagnosticPiece              value_type;
     typedef value_type&                      reference;
@@ -163,7 +163,7 @@
   
   class const_iterator {
   public:  
-    typedef std::list<PathDiagnosticPiece*>::const_iterator ImplTy;
+    typedef std::deque<PathDiagnosticPiece*>::const_iterator ImplTy;
     
     typedef const PathDiagnosticPiece        value_type;
     typedef value_type&                      reference;





More information about the cfe-commits mailing list