Lines Matching defs:FixItsForVariable
3437 // Erases variables in `FixItsForVariable`, if such a variable has an unfixable
3438 // group mate. A variable `v` is unfixable iff `FixItsForVariable` does not
3441 std::map<const VarDecl *, FixItList> &FixItsForVariable,
3443 // Variables will be removed from `FixItsForVariable`:
3446 for (const auto &[VD, Ignore] : FixItsForVariable) {
3449 [&FixItsForVariable](const VarDecl *GrpMember) -> bool {
3450 return !FixItsForVariable.count(GrpMember);
3459 FixItsForVariable.erase(VarToErase);
3464 // fix-its in `FixItsForVariable`.
3468 // be erased from `FixItsForVariable`.
3470 std::map<const VarDecl *, FixItList> &FixItsForVariable /* mutable */,
3483 // whole group, where parameters are in, from `FixItsForVariable` (Note
3486 FixItsForVariable.erase(Member);
3498 // `FixItsForVariable` will map each variable to a set of fix-its directly
3500 // `FixItsForVariable` are disjoint.
3501 std::map<const VarDecl *, FixItList> FixItsForVariable;
3503 // Populate `FixItsForVariable` with fix-its directly associated with each
3507 FixItsForVariable[VD] =
3511 if (FixItsForVariable[VD].empty()) {
3512 FixItsForVariable.erase(VD);
3519 FixItsForVariable[VD].insert(FixItsForVariable[VD].end(),
3529 FixItsForVariable.erase(VD);
3534 // `FixItsForVariable` now contains only variables that can be
3538 // To further remove from `FixItsForVariable` variables whose group mates
3540 eraseVarsForUnfixableGroupMates(FixItsForVariable, VarGrpMgr);
3541 // Now `FixItsForVariable` gets further reduced: a variable is in
3542 // `FixItsForVariable` iff it can be fixed and all its group mates can be
3552 FixItsForVariable, VarGrpMgr, FD, S, Ctx, Handler);
3557 FixItsForVariable};
3559 for (auto &[Var, Ignore] : FixItsForVariable) {
3566 if (FixItsForVariable.count(GrpMate))
3567 FinalFixItsForVariable[Var].append(FixItsForVariable[GrpMate]);