Lines Matching full:replaces

2347   // Replaces double/single-quoted string literal as appropriate, re-escaping
3069 // adding the necessary replacement to 'Replaces'. 'Includes' must be in strict
3078 StringRef Code, tooling::Replacements &Replaces, in sortCppIncludes() argument
3166 auto Err = Replaces.add(tooling::Replacement( in sortCppIncludes()
3179 tooling::Replacements &Replaces, in sortCppIncludes() argument
3267 Replaces, Cursor); in sortCppIncludes()
3283 sortCppIncludes(Style, IncludesInBlock, Ranges, FileName, Code, Replaces, in sortCppIncludes()
3286 return Replaces; in sortCppIncludes()
3307 // JavaImportGroups, then adding the necessary replacement to 'Replaces'.
3314 StringRef Code, tooling::Replacements &Replaces) { in sortJavaImports() argument
3376 auto Err = Replaces.add(tooling::Replacement(FileName, Imports.front().Offset, in sortJavaImports()
3396 tooling::Replacements &Replaces) { in sortJavaImports() argument
3421 return Replaces; in sortJavaImports()
3441 sortJavaImports(Style, ImportsInBlock, Ranges, FileName, Code, Replaces); in sortJavaImports()
3442 return Replaces; in sortJavaImports()
3457 tooling::Replacements Replaces; in sortIncludes() local
3459 return Replaces; in sortIncludes()
3461 return Replaces; in sortIncludes()
3464 return Replaces; in sortIncludes()
3469 return sortJavaImports(Style, Code, Ranges, FileName, Replaces); in sortIncludes()
3470 sortCppIncludes(Style, Code, Ranges, FileName, Replaces, Cursor); in sortIncludes()
3471 return Replaces; in sortIncludes()
3477 const tooling::Replacements &Replaces, in processReplacements() argument
3479 if (Replaces.empty()) in processReplacements()
3482 auto NewCode = applyAllReplacements(Code, Replaces); in processReplacements()
3485 std::vector<tooling::Range> ChangedRanges = Replaces.getAffectedRanges(); in processReplacements()
3486 StringRef FileName = Replaces.begin()->getFilePath(); in processReplacements()
3491 return Replaces.merge(FormatReplaces); in processReplacements()
3495 formatReplacements(StringRef Code, const tooling::Replacements &Replaces, in formatReplacements() argument
3505 processReplacements(SortIncludes, Code, Replaces, Style); in formatReplacements()
3533 fixCppIncludeInsertions(StringRef Code, const tooling::Replacements &Replaces, in fixCppIncludeInsertions() argument
3536 return Replaces; in fixCppIncludeInsertions()
3541 for (const auto &R : Replaces) { in fixCppIncludeInsertions()
3543 // Replacements from \p Replaces must be conflict-free already, so we can in fixCppIncludeInsertions()
3557 return Replaces; in fixCppIncludeInsertions()
3559 StringRef FileName = Replaces.begin()->getFilePath(); in fixCppIncludeInsertions()
3563 tooling::Replacements Replaces = in fixCppIncludeInsertions() local
3565 for (const auto &R : Replaces) { in fixCppIncludeInsertions()
3605 cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces, in cleanupAroundReplacements() argument
3616 fixCppIncludeInsertions(Code, Replaces, Style); in cleanupAroundReplacements()
3658 tooling::Replacements Replaces = in reformat() local
3661 Replaces = Replaces.merge( in reformat()
3664 if (applyAllReplacements(Code, Replaces)) in reformat()
3665 return {Replaces, 0}; in reformat()