• Home
  • Raw
  • Download

Lines Matching full:replacements

26   // This converts AtomicChange's internal implementation of the replacements
27 // set to a vector of replacements.
61 Io.mapRequired("Replacements", Doc.Replaces); in mapping()
76 Io.mapRequired("Replacements", Keys->Replaces); in mapping()
109 const clang::tooling::Replacements &Replaces) { in getRangesForFormating()
114 // This works assuming that replacements are ordered by offset. in getRangesForFormating()
142 // Creates replacements for inserting/deleting #include headers.
143 llvm::Expected<Replacements>
147 // Create header insertion/deletion replacements to be cleaned up in createReplacementsForHeaders()
148 // (i.e. converted to real insertion/deletion replacements). in createReplacementsForHeaders()
149 Replacements HeaderReplacements; in createReplacementsForHeaders()
175 // actual replacements that add/remove headers at the right location. in createReplacementsForHeaders()
180 // Combine replacements in all Changes as a `Replacements`. This ignores the
181 // file path in all replacements and replaces them with \p FilePath.
182 llvm::Expected<Replacements>
185 Replacements Replaces; in combineReplacementsInChanges()
217 clang::tooling::Replacements Replaces) in AtomicChange()
247 NE.RemovedHeaders, tooling::Replacements()); in convertFromYAML()
285 Replaces = Replaces.merge(Replacements(NewR)); in insert()
304 llvm::Expected<Replacements> HeaderReplacements = in applyAtomicChanges()
308 "Failed to create replacements for header changes: " + in applyAtomicChanges()
311 llvm::Expected<Replacements> Replaces = in applyAtomicChanges()
314 return make_string_error("Failed to combine replacements in all changes: " + in applyAtomicChanges()
317 Replacements AllReplaces = std::move(*Replaces); in applyAtomicChanges()
322 "Failed to combine existing replacements with header replacements: " + in applyAtomicChanges()
327 llvm::Expected<Replacements> CleanReplaces = in applyAtomicChanges()
330 return make_string_error("Failed to cleanup around replacements: " + in applyAtomicChanges()
335 // Apply all replacements. in applyAtomicChanges()
339 return make_string_error("Failed to apply all replacements: " + in applyAtomicChanges()
345 Replacements HeaderSortingReplacements = format::sortIncludes( in applyAtomicChanges()
350 "Failed to apply replacements for sorting includes: " + in applyAtomicChanges()
358 Replacements FormatReplacements = in applyAtomicChanges()
363 "Failed to apply replacements for formatting changed code: " + in applyAtomicChanges()