Lines Matching defs:FixItsForVariable
2831 // Erases variables in `FixItsForVariable`, if such a variable has an unfixable
2832 // group mate. A variable `v` is unfixable iff `FixItsForVariable` does not
2835 std::map<const VarDecl *, FixItList> &FixItsForVariable,
2837 // Variables will be removed from `FixItsForVariable`:
2840 for (const auto &[VD, Ignore] : FixItsForVariable) {
2843 [&FixItsForVariable](const VarDecl *GrpMember) -> bool {
2844 return !FixItsForVariable.count(GrpMember);
2853 FixItsForVariable.erase(VarToErase);
2858 // fix-its in `FixItsForVariable`.
2862 // be erased from `FixItsForVariable`.
2864 std::map<const VarDecl *, FixItList> &FixItsForVariable /* mutable */,
2877 // whole group, where parameters are in, from `FixItsForVariable` (Note
2880 FixItsForVariable.erase(Member);
2892 // `FixItsForVariable` will map each variable to a set of fix-its directly
2894 // `FixItsForVariable` are disjoint.
2895 std::map<const VarDecl *, FixItList> FixItsForVariable;
2897 // Populate `FixItsForVariable` with fix-its directly associated with each
2901 FixItsForVariable[VD] =
2905 if (FixItsForVariable[VD].empty()) {
2906 FixItsForVariable.erase(VD);
2913 FixItsForVariable[VD].insert(FixItsForVariable[VD].end(),
2923 FixItsForVariable.erase(VD);
2928 // `FixItsForVariable` now contains only variables that can be
2932 // To further remove from `FixItsForVariable` variables whose group mates
2934 eraseVarsForUnfixableGroupMates(FixItsForVariable, VarGrpMgr);
2935 // Now `FixItsForVariable` gets further reduced: a variable is in
2936 // `FixItsForVariable` iff it can be fixed and all its group mates can be
2946 FixItsForVariable, VarGrpMgr, FD, S, Ctx, Handler);
2951 FixItsForVariable};
2953 for (auto &[Var, Ignore] : FixItsForVariable) {
2960 if (FixItsForVariable.count(GrpMate))
2961 FinalFixItsForVariable[Var].append(FixItsForVariable[GrpMate]);