Home
last modified time | relevance | path

Searched refs:ChangedCode (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp336 llvm::Expected<std::string> ChangedCode = in applyAtomicChanges() local
338 if (!ChangedCode) in applyAtomicChanges()
340 llvm::toString(ChangedCode.takeError())); in applyAtomicChanges()
346 Spec.Style, *ChangedCode, AllReplaces.getAffectedRanges(), FilePath); in applyAtomicChanges()
347 ChangedCode = applyAllReplacements(*ChangedCode, HeaderSortingReplacements); in applyAtomicChanges()
348 if (!ChangedCode) in applyAtomicChanges()
351 llvm::toString(ChangedCode.takeError())); in applyAtomicChanges()
356 *ChangedCode, Spec.Style.ColumnLimit, Spec.Format, AllReplaces); in applyAtomicChanges()
359 format::reformat(Spec.Style, *ChangedCode, FormatRanges, FilePath); in applyAtomicChanges()
360 ChangedCode = applyAllReplacements(*ChangedCode, FormatReplacements); in applyAtomicChanges()
[all …]
/freebsd/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp502 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces); in format() local
503 if (!ChangedCode) { in format()
504 llvm::errs() << toString(ChangedCode.takeError()) << "\n"; in format()
511 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); in format()