Lines Matching refs:fixit
1202 static void ApplyFixIt(const FixItHint &fixit, clang::edit::Commit &commit) { in ApplyFixIt() argument
1204 if (fixit.CodeToInsert.empty()) { in ApplyFixIt()
1205 if (fixit.InsertFromRange.isValid()) { in ApplyFixIt()
1206 commit.insertFromRange(fixit.RemoveRange.getBegin(), in ApplyFixIt()
1207 fixit.InsertFromRange, /*afterToken=*/false, in ApplyFixIt()
1208 fixit.BeforePreviousInsertions); in ApplyFixIt()
1211 commit.remove(fixit.RemoveRange); in ApplyFixIt()
1214 if (fixit.RemoveRange.isTokenRange() || in ApplyFixIt()
1215 fixit.RemoveRange.getBegin() != fixit.RemoveRange.getEnd()) { in ApplyFixIt()
1216 commit.replace(fixit.RemoveRange, fixit.CodeToInsert); in ApplyFixIt()
1219 commit.insert(fixit.RemoveRange.getBegin(), fixit.CodeToInsert, in ApplyFixIt()
1220 /*afterToken=*/false, fixit.BeforePreviousInsertions); in ApplyFixIt()
1258 for (const FixItHint &fixit : diagnostic->FixIts()) in RewriteExpression() local
1259 ApplyFixIt(fixit, commit); in RewriteExpression()