Home | History | Annotate | Download | only in Core

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);
518 PathDiagnosticPiece *Piece = (*I)->VisitNode(N, Pred, PDB, *R);
519 delete Piece;
536 // If the piece contains a special message, add it to all the call
583 // Record the mapping from call piece to LocationContext.
607 // Record the mapping from call piece to LocationContext.
999 // of the first piece as a context as well.
1683 // Since we just transferred the path over to the call piece,
1736 // a new call piece to contain the path pieces for that call.
1740 // Record the location context for this call piece.
1982 PathDiagnosticControlFlowPiece *Piece =
1985 if (!Piece)
1988 PathDiagnosticLocation SrcLoc = Piece->getStartLocation();
2004 const Stmt *Dst = getLocStmt(Piece->getEndLocation());
2019 Piece->setStartLocation(DstContext);
2041 Piece = new PathDiagnosticControlFlowPiece(SrcLoc, DstContext);
2042 I = pieces.insert(I, Piece);
2184 // Pattern match the current piece and its successor.
2325 // Erase the second piece if it has the same exact message text.
2353 // Pattern match the current piece and its successor.
2998 PathDiagnosticPiece *piece = I->get();
3001 if (PathDiagnosticCallPiece *call=dyn_cast<PathDiagnosticCallPiece>(piece)){
3006 const FullSourceLoc Loc = piece->getLocation().asLocation();
3016 Pieces.push_back(piece);
3024 MacroStack.back().first->subPieces.push_back(piece);
3055 PathDiagnosticLocation::createSingleLocation(piece->getLocation()));
3069 MacroGroup->subPieces.push_back(piece);
3151 // Generate the very last diagnostic piece - the piece is visible before
3156 if (PathDiagnosticPiece *Piece = (*I)->getEndPath(PDB, N, *R)) {
3158 "There can only be one final piece in a diagnostic.");
3159 LastPiece.reset(Piece);
3442 // Examine the report and see if the last piece is in a header. Reset the
3443 // report location to the last piece in the main source file.
3452 PathDiagnosticPiece *piece =
3457 piece->addRange(*Beg);
3458 D->setEndOfPath(piece);