[PATCH] D23241: Add the notion of deferred diagnostics.
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 12 18:46:55 PDT 2016
rnk added a comment.
Sorry for the delay, was trying to stay focused on debugging
Comment at: clang/include/clang/AST/Decl.h:1647
@@ +1646,3 @@
+ /// clears this list) needs to be a logically-const operation.
+ mutable std::unique_ptr<std::vector<PartialDiagnosticAt>> DeferredDiags;
Decl memory is pretty precious, I think you'll be better off with a map from Decl* to TinyPtrVector in the ASTContext. Just pass the ASTContext into takeDeferredDiags.
More information about the cfe-commits