Lines Matching defs:Piece
111 IntrusiveRefCntPtr<PathDiagnosticPiece> piece(path.front());
114 switch (piece->getKind()) {
116 removeRedundantMsgs(cast<PathDiagnosticCallPiece>(piece)->path);
119 removeRedundantMsgs(cast<PathDiagnosticMacroPiece>(piece)->subPieces);
130 cast<PathDiagnosticEventPiece>(piece);
132 // come up with a preference, record which piece to keep, and consume
133 // another piece from the path.
136 piece = pieceToKeep;
144 path.push_back(piece);
162 // Remove the front piece from the path. If it is still something we
164 IntrusiveRefCntPtr<PathDiagnosticPiece> piece(pieces.front());
167 switch (piece->getKind()) {
169 PathDiagnosticCallPiece *call = cast<PathDiagnosticCallPiece>(piece);
184 PathDiagnosticMacroPiece *macro = cast<PathDiagnosticMacroPiece>(piece);
191 PathDiagnosticEventPiece *event = cast<PathDiagnosticEventPiece>(piece);
202 pieces.push_back(piece);
515 PathDiagnosticPiece *Piece = V->VisitNode(N, Pred, PDB, *R);
516 delete Piece;
533 // If the piece contains a special message, add it to all the call
579 // Record the mapping from call piece to LocationContext.
603 // Record the mapping from call piece to LocationContext.
993 // of the first piece as a context as well.
1670 // Since we just transferred the path over to the call piece,
1723 // a new call piece to contain the path pieces for that call.
1727 // Record the location context for this call piece.
1967 PathDiagnosticControlFlowPiece *Piece =
1970 if (!Piece)
1973 PathDiagnosticLocation SrcLoc = Piece->getStartLocation();
1989 const Stmt *Dst = getLocStmt(Piece->getEndLocation());
2004 Piece->setStartLocation(DstContext);
2026 Piece = new PathDiagnosticControlFlowPiece(SrcLoc, DstContext);
2027 I = pieces.insert(I, Piece);
2169 // Pattern match the current piece and its successor.
2310 // Erase the second piece if it has the same exact message text.
2338 // Pattern match the current piece and its successor.
2974 PathDiagnosticPiece *piece = I->get();
2977 if (PathDiagnosticCallPiece *call=dyn_cast<PathDiagnosticCallPiece>(piece)){
2982 const FullSourceLoc Loc = piece->getLocation().asLocation();
2992 Pieces.push_back(piece);
3000 MacroStack.back().first->subPieces.push_back(piece);
3031 PathDiagnosticLocation::createSingleLocation(piece->getLocation()));
3045 MacroGroup->subPieces.push_back(piece);
3126 // Generate the very last diagnostic piece - the piece is visible before
3131 if (std::unique_ptr<PathDiagnosticPiece> Piece =
3134 "There can only be one final piece in a diagnostic.");
3135 LastPiece = std::move(Piece);
3419 // Examine the report and see if the last piece is in a header. Reset the
3420 // report location to the last piece in the main source file.
3429 auto piece = llvm::make_unique<PathDiagnosticEventPiece>(
3432 piece->addRange(Range);
3433 D->setEndOfPath(std::move(piece));