Lines Matching defs:Pieces
101 /// can lead to redundant diagnostic pieces at the same point in a path.
131 // Check to see if we should keep one of the two pieces. If we
153 /// Recursively scan through a path and prune out calls and macros pieces
156 static bool removeUnneededCalls(PathPieces &pieces, BugReport *R,
159 const unsigned N = pieces.size();
164 IntrusiveRefCntPtr<PathDiagnosticPiece> piece(pieces.front());
165 pieces.pop_front();
202 pieces.push_back(piece);
215 /// Recursively scan through a path and make sure that all call pieces have
218 adjustCallLocations(PathPieces &Pieces,
220 for (PathPieces::iterator I = Pieces.begin(), E = Pieces.end(); I != E; ++I) {
253 static void removeEdgesToDefaultInitializers(PathPieces &Pieces) {
254 for (PathPieces::iterator I = Pieces.begin(), E = Pieces.end(); I != E;) {
266 I = Pieces.erase(I);
276 I = Pieces.erase(I);
285 /// Remove all pieces with invalid locations as these cannot be serialized.
286 /// We might have pieces with invalid locations as a result of inlining Body
288 static void removePiecesWithInvalidLocations(PathPieces &Pieces) {
289 for (PathPieces::iterator I = Pieces.begin(), E = Pieces.end(); I != E;) {
298 I = Pieces.erase(I);
514 // Visit all the node pairs, but throw the path pieces away.
534 // pieces on the active stack.
867 // Add diagnostic pieces from custom visitors.
992 // If the PathDiagnostic already has pieces, add the enclosing statement
1565 // Add pieces from custom visitors.
1723 // a new call piece to contain the path pieces for that call.
1856 // Add pieces from custom visitors.
1962 static void addContextEdges(PathPieces &pieces, SourceManager &SM,
1964 PathPieces::iterator Prev = pieces.end();
1965 for (PathPieces::iterator I = pieces.begin(), E = Prev; I != E;
2027 I = pieces.insert(I, Piece);
2043 static void simplifySimpleBranches(PathPieces &pieces) {
2044 for (PathPieces::iterator I = pieces.begin(), E = pieces.end(); I != E; ++I) {
2106 I = pieces.erase(I);
2969 PiecesTy Pieces;
2992 Pieces.push_back(piece);
3037 Pieces.push_back(NewGroup);
3048 // Now take the pieces and construct a new PathDiagnostic.
3051 path.insert(path.end(), Pieces.begin(), Pieces.end());
3183 // Redirect all call pieces to have valid locations.