• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/

Lines Matching defs:piece

380     auto piece = std::move(path.front());
383 switch (piece->getKind()) {
385 removeRedundantMsgs(cast<PathDiagnosticCallPiece>(*piece).path);
388 removeRedundantMsgs(cast<PathDiagnosticMacroPiece>(*piece).subPieces);
396 auto *event = cast<PathDiagnosticEventPiece>(piece.get());
398 // come up with a preference, record which piece to keep, and consume
399 // another piece from the path.
402 piece = std::move(pieceToKeep == event ? piece : path.front());
414 path.push_back(std::move(piece));
429 // Remove the front piece from the path. If it is still something we
431 auto piece = std::move(pieces.front());
434 switch (piece->getKind()) {
436 auto &call = cast<PathDiagnosticCallPiece>(*piece);
447 auto &macro = cast<PathDiagnosticMacroPiece>(*piece);
454 auto &event = cast<PathDiagnosticEventPiece>(*piece);
467 pieces.push_back(std::move(piece));
711 /// If the piece contains a special message, add it to all the call pieces on
1157 // call piece to encapsulate the rest of the path pieces.
1163 // Since we just transferred the path over to the call piece, reset the
1197 // a new call piece to contain the path pieces for that call.
1199 // Record the mapping from call piece to LocationContext.
1617 // Pattern match the current piece and its successor.
1749 // Erase the second piece if it has the same exact message text.
1778 // Pattern match the current piece and its successor.
2662 const auto &piece = *I;
2665 if (auto *call = dyn_cast<PathDiagnosticCallPiece>(&*piece)) {
2670 const FullSourceLoc Loc = piece->getLocation().asLocation();
2680 Pieces.push_back(piece);
2688 MacroStack.back().first->subPieces.push_back(piece);
2718 PathDiagnosticLocation::createSingleLocation(piece->getLocation()));
2732 MacroGroup->subPieces.push_back(piece);
2775 "There can only be one final piece in a diagnostic.");
2777 "The final piece must contain a message!");
3057 auto piece = std::make_unique<PathDiagnosticEventPiece>(
3060 piece->addRange(Range);
3061 PD->setEndOfPath(std::move(piece));
3190 "The call piece should not be in a header file.");
3200 // Check if the last piece in the callee path is a call to a function outside
3205 // Otherwise, the last piece is in the main file.
3217 // We only need to check if the report ends inside headers, if the last piece
3218 // is a call piece.
3222 // Mark the piece.
3274 // Examine the report and see if the last piece is in a header. Reset the
3275 // report location to the last piece in the main source file.