Lines Matching refs:fixit
1227 static void ApplyFixIt(const FixItHint &fixit, clang::edit::Commit &commit) { in ApplyFixIt() argument
1229 if (fixit.CodeToInsert.empty()) { in ApplyFixIt()
1230 if (fixit.InsertFromRange.isValid()) { in ApplyFixIt()
1231 commit.insertFromRange(fixit.RemoveRange.getBegin(), in ApplyFixIt()
1232 fixit.InsertFromRange, /*afterToken=*/false, in ApplyFixIt()
1233 fixit.BeforePreviousInsertions); in ApplyFixIt()
1236 commit.remove(fixit.RemoveRange); in ApplyFixIt()
1239 if (fixit.RemoveRange.isTokenRange() || in ApplyFixIt()
1240 fixit.RemoveRange.getBegin() != fixit.RemoveRange.getEnd()) { in ApplyFixIt()
1241 commit.replace(fixit.RemoveRange, fixit.CodeToInsert); in ApplyFixIt()
1244 commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert, in ApplyFixIt()
1245 /*afterToken=*/false, fixit.BeforePreviousInsertions); in ApplyFixIt()
1283 for (const FixItHint &fixit : diagnostic->FixIts()) in RewriteExpression() local
1284 ApplyFixIt(fixit, commit); in RewriteExpression()