Lines Matching refs:piece
383 auto piece = std::move(path.front()); in removeRedundantMsgs() local
386 switch (piece->getKind()) { in removeRedundantMsgs()
388 removeRedundantMsgs(cast<PathDiagnosticCallPiece>(*piece).path); in removeRedundantMsgs()
391 removeRedundantMsgs(cast<PathDiagnosticMacroPiece>(*piece).subPieces); in removeRedundantMsgs()
399 auto *event = cast<PathDiagnosticEventPiece>(piece.get()); in removeRedundantMsgs()
405 piece = std::move(pieceToKeep == event ? piece : path.front()); in removeRedundantMsgs()
417 path.push_back(std::move(piece)); in removeRedundantMsgs()
434 auto piece = std::move(pieces.front()); in removeUnneededCalls() local
437 switch (piece->getKind()) { in removeUnneededCalls()
439 auto &call = cast<PathDiagnosticCallPiece>(*piece); in removeUnneededCalls()
450 auto ¯o = cast<PathDiagnosticMacroPiece>(*piece); in removeUnneededCalls()
457 auto &event = cast<PathDiagnosticEventPiece>(*piece); in removeUnneededCalls()
470 pieces.push_back(std::move(piece)); in removeUnneededCalls()
2686 const auto &piece = *I; in CompactMacroExpandedPieces() local
2689 if (auto *call = dyn_cast<PathDiagnosticCallPiece>(&*piece)) { in CompactMacroExpandedPieces()
2694 const FullSourceLoc Loc = piece->getLocation().asLocation(); in CompactMacroExpandedPieces()
2704 Pieces.push_back(piece); in CompactMacroExpandedPieces()
2712 MacroStack.back().first->subPieces.push_back(piece); in CompactMacroExpandedPieces()
2742 PathDiagnosticLocation::createSingleLocation(piece->getLocation())); in CompactMacroExpandedPieces()
2756 MacroGroup->subPieces.push_back(piece); in CompactMacroExpandedPieces()
3089 auto piece = std::make_unique<PathDiagnosticEventPiece>( in FlushReport() local
3092 piece->addRange(Range); in FlushReport()
3093 PD->setEndOfPath(std::move(piece)); in FlushReport()