Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/Tooling/Refactoring/
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 …]
/external/llvm-project/clang/unittests/Rename/
DClangRenameTest.h98 auto ChangedCode = tooling::applyAllReplacements(Code, Replaces); in format() local
99 EXPECT_TRUE(static_cast<bool>(ChangedCode)); in format()
100 if (!ChangedCode) { in format()
101 llvm::errs() << llvm::toString(ChangedCode.takeError()); in format()
104 return *ChangedCode; in format()
/external/llvm-project/clang-tools-extra/clang-include-fixer/tool/
DClangIncludeFixer.cpp341 auto ChangedCode = in includeFixerMain() local
343 if (!ChangedCode) { in includeFixerMain()
344 llvm::errs() << llvm::toString(ChangedCode.takeError()) << "\n"; in includeFixerMain()
347 llvm::outs() << *ChangedCode; in includeFixerMain()
441 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), in includeFixerMain() local
443 if (!ChangedCode) { in includeFixerMain()
444 llvm::errs() << llvm::toString(ChangedCode.takeError()) << "\n"; in includeFixerMain()
447 llvm::outs() << *ChangedCode; in includeFixerMain()
/external/clang/tools/clang-format/
DClangFormat.cpp260 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces); in format() local
261 if (!ChangedCode) { in format()
262 llvm::errs() << llvm::toString(ChangedCode.takeError()) << "\n"; in format()
269 Replacements FormatChanges = reformat(FormatStyle, *ChangedCode, Ranges, in format()
/external/llvm-project/clang-tools-extra/unittests/clang-change-namespace/
DChangeNamespaceTests.cpp56 auto ChangedCode = tooling::applyAllReplacements(Code, Replaces); in format() local
57 EXPECT_TRUE(static_cast<bool>(ChangedCode)); in format()
58 if (!ChangedCode) { in format()
59 llvm::errs() << llvm::toString(ChangedCode.takeError()); in format()
62 return *ChangedCode; in format()
/external/llvm-project/clang/tools/clang-format/
DClangFormat.cpp405 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces); in format() local
406 if (!ChangedCode) { in format()
407 llvm::errs() << llvm::toString(ChangedCode.takeError()) << "\n"; in format()
414 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); in format()
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp965 auto ChangedCode = tooling::applyAllReplacements(Code, Replaces); in onEndOfTranslationUnit() local
966 if (!ChangedCode) { in onEndOfTranslationUnit()
967 llvm::errs() << llvm::toString(ChangedCode.takeError()) << "\n"; in onEndOfTranslationUnit()
983 std::string MovedCode = ChangedCode->substr(NewOffset, NewLength); in onEndOfTranslationUnit()
/external/llvm-project/clang/unittests/Tooling/
DTransformerTest.cpp113 auto ChangedCode = in rewrite() local
115 if (!ChangedCode) { in rewrite()
117 << llvm::toString(ChangedCode.takeError()) << "\n"; in rewrite()
120 return *ChangedCode; in rewrite()
DRefactoringTest.cpp1341 llvm::Expected<std::string> ChangedCode = in rewrite() local
1343 EXPECT_EQ(FailureExpected, !ChangedCode); in rewrite()
1344 if (!ChangedCode) { in rewrite()
1346 << llvm::toString(ChangedCode.takeError()) << "\n"; in rewrite()
1349 return *ChangedCode; in rewrite()