]> granicus.if.org Git - clang/commitdiff
[analyzer] Re-apply r283092, attempt no.4, chunk no.2.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 7 Oct 2016 15:55:18 +0000 (15:55 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 7 Oct 2016 15:55:18 +0000 (15:55 +0000)
Define the list of pieces in BugReport class. This is half of the changes
in the BugReport class code, which is pointed to by the msvc crash message.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283568 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h

index 0ab8b29c3e0370e9d3857ffb6d459055f28b17a5..7bcdef66229db596d12f15eb72eaae6894987314 100644 (file)
@@ -66,6 +66,8 @@ public:
   typedef SmallVector<std::unique_ptr<BugReporterVisitor>, 8> VisitorList;
   typedef VisitorList::iterator visitor_iterator;
   typedef SmallVector<StringRef, 2> ExtraTextList;
+  typedef SmallVector<llvm::IntrusiveRefCntPtr<PathDiagnosticNotePiece>, 4>
+      NoteList;
 
 protected:
   friend class BugReporter;
@@ -82,7 +84,8 @@ protected:
   const ExplodedNode *ErrorNode;
   SmallVector<SourceRange, 4> Ranges;
   ExtraTextList ExtraText;
-  
+  NoteList Notes;
+
   typedef llvm::DenseSet<SymbolRef> Symbols;
   typedef llvm::DenseSet<const MemRegion *> Regions;