Lines Matching refs:fixit
1230 static void ApplyFixIt(const FixItHint &fixit, clang::edit::Commit &commit) { in ApplyFixIt() argument
1232 if (fixit.CodeToInsert.empty()) { in ApplyFixIt()
1233 if (fixit.InsertFromRange.isValid()) { in ApplyFixIt()
1234 commit.insertFromRange(fixit.RemoveRange.getBegin(), in ApplyFixIt()
1235 fixit.InsertFromRange, /*afterToken=*/false, in ApplyFixIt()
1236 fixit.BeforePreviousInsertions); in ApplyFixIt()
1239 commit.remove(fixit.RemoveRange); in ApplyFixIt()
1242 if (fixit.RemoveRange.isTokenRange() || in ApplyFixIt()
1243 fixit.RemoveRange.getBegin() != fixit.RemoveRange.getEnd()) { in ApplyFixIt()
1244 commit.replace(fixit.RemoveRange, fixit.CodeToInsert); in ApplyFixIt()
1247 commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert, in ApplyFixIt()
1248 /*afterToken=*/false, fixit.BeforePreviousInsertions); in ApplyFixIt()
1286 for (const FixItHint &fixit : diagnostic->FixIts()) in RewriteExpression() local
1287 ApplyFixIt(fixit, commit); in RewriteExpression()