[cfe-commits] r66271 - /cfe/trunk/include/clang/Analysis/PathDiagnostic.h
Ted Kremenek
kremenek at apple.com
Fri Mar 6 08:36:43 PST 2009
Author: kremenek
Date: Fri Mar 6 10:36:40 2009
New Revision: 66271
URL: http://llvm.org/viewvc/llvm-project?rev=66271&view=rev
Log:
Use list instead of vector for storing strings.
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=66271&r1=66270&r2=66271&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathDiagnostic.h (original)
+++ cfe/trunk/include/clang/Analysis/PathDiagnostic.h Fri Mar 6 10:36:40 2009
@@ -101,7 +101,7 @@
std::string BugType;
std::string Desc;
std::string Category;
- std::vector<std::string> OtherDesc;
+ std::list<std::string> OtherDesc;
public:
PathDiagnostic();
@@ -117,7 +117,7 @@
const std::string& getBugType() const { return BugType; }
const std::string& getCategory() const { return Category; }
- typedef std::vector<std::string>::const_iterator meta_iterator;
+ typedef std::list<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); }
More information about the cfe-commits
mailing list