reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  570     ForestDist = std::make_unique<std::unique_ptr<double[]>[]>(
  574       ForestDist[I] = std::make_unique<double[]>(size_t(S2.getSize()) + 1);
  607             ForestDist[Row - 1][Col] + 1 == ForestDist[Row][Col]) {
  607             ForestDist[Row - 1][Col] + 1 == ForestDist[Row][Col]) {
  610                    ForestDist[Row][Col - 1] + 1 == ForestDist[Row][Col]) {
  610                    ForestDist[Row][Col - 1] + 1 == ForestDist[Row][Col]) {
  661     ForestDist[LMD1][LMD2] = 0;
  663       ForestDist[D1][LMD2] = ForestDist[D1 - 1][LMD2] + DeletionCost;
  663       ForestDist[D1][LMD2] = ForestDist[D1 - 1][LMD2] + DeletionCost;
  665         ForestDist[LMD1][D2] = ForestDist[LMD1][D2 - 1] + InsertionCost;
  665         ForestDist[LMD1][D2] = ForestDist[LMD1][D2 - 1] + InsertionCost;
  670           ForestDist[D1][D2] =
  671               std::min({ForestDist[D1 - 1][D2] + DeletionCost,
  672                         ForestDist[D1][D2 - 1] + InsertionCost,
  673                         ForestDist[D1 - 1][D2 - 1] + UpdateCost});
  674           TreeDist[D1][D2] = ForestDist[D1][D2];
  676           ForestDist[D1][D2] =
  677               std::min({ForestDist[D1 - 1][D2] + DeletionCost,
  678                         ForestDist[D1][D2 - 1] + InsertionCost,
  679                         ForestDist[DLMD1][DLMD2] + TreeDist[D1][D2]});