[cfe-dev] Visit nodes in the order of the user output to create better reports

Csaba Dabis via cfe-dev cfe-dev at lists.llvm.org
Fri Nov 16 08:21:59 PST 2018


Why does the 'generateVisitorsDiagnostics()' function in BugReporter.cpp
work backwards? It starts from the node of the error and iterate over the

I have tried to make it to work forward with storing the 'const
ExplodedNode *' nodes in a vector, but 'auto P = V->VisitNode(NextNode,
BRC, *R);' crashes. I just found out the 'LastPiece' checking could be
moved out from the while-loop, that is it for now.

Is it possible to achieve? What is could be problematic with that code

Thanks you for the suggestions,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181116/bd926310/attachment.html>

More information about the cfe-dev mailing list