Home
last modified time | relevance | path

Searched refs:applyAllReplacements (Results 1 – 25 of 71) sorted by relevance

123

/external/clang/lib/Tooling/
DRefactoring.cpp50 if (!applyAllReplacements(Rewrite)) { in runAndSave()
57 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { in applyAllReplacements() function in clang::tooling::RefactoringTool
58 return tooling::applyAllReplacements(Replace, Rewrite); in applyAllReplacements()
88 Result = applyAllReplacements(*NewReplacements, Rewrite) && Result; in formatAndApplyAllReplacements()
/external/llvm-project/clang/lib/Tooling/
DRefactoring.cpp50 if (!applyAllReplacements(Rewrite)) { in runAndSave()
57 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { in applyAllReplacements() function in clang::tooling::RefactoringTool
61 Result = tooling::applyAllReplacements(Entry.second, Rewrite) && Result; in applyAllReplacements()
100 Result = applyAllReplacements(*NewReplacements, Rewrite) && Result; in formatAndApplyAllReplacements()
/external/clang/unittests/Tooling/
DRefactoringTest.cpp120 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
135 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
149 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
165 EXPECT_FALSE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
311 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
643 auto AfterFirst = applyAllReplacements(Code, First); in mergeAndTestRewrite()
645 auto InSequenceRewrite = applyAllReplacements(*AfterFirst, Second); in mergeAndTestRewrite()
651 auto MergedRewrite = applyAllReplacements(Code, Merged); in mergeAndTestRewrite()
661 auto AfterFirst = applyAllReplacements(Code, First); in mergeAndTestRewrite()
663 auto InSequenceRewrite = applyAllReplacements(*AfterFirst, Second); in mergeAndTestRewrite()
[all …]
DRewriterTest.cpp44 auto Rewritten = applyAllReplacements("line1\nline2\nline3\nline4", Replaces); in TEST()
/external/clang/include/clang/Tooling/Core/
DReplacement.h156 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
164 bool applyAllReplacements(const std::vector<Replacement> &Replaces,
174 llvm::Expected<std::string> applyAllReplacements(StringRef Code,
/external/clang/unittests/Format/
DSortImportsTestJS.cpp29 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); in sort()
31 auto Formatted = applyAllReplacements( in sort()
DSortIncludesTest.cpp30 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); in sort()
32 auto Result = applyAllReplacements( in sort()
DFormatTestProto.cpp28 auto Result = applyAllReplacements(Code, Replaces); in format()
/external/llvm-project/clang/unittests/Format/
DSortImportsTestJS.cpp28 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); in sort()
30 auto Formatted = applyAllReplacements( in sort()
DSortImportsTestJava.cpp19 auto Sorted = applyAllReplacements(Code, Replaces); in sort()
21 auto Result = applyAllReplacements( in sort()
DFormatTestTableGen.cpp27 auto Result = applyAllReplacements(Code, Replaces); in format()
DCleanupTest.cpp30 auto Result = applyAllReplacements(Code, Replaces); in cleanup()
336 auto Result = applyAllReplacements(Code, *CleanReplaces); in apply()
349 auto Result = applyAllReplacements(Code, *FormattedReplaces); in formatAndApply()
DSortIncludesTest.cpp33 auto Sorted = applyAllReplacements(Code, Replaces); in sort()
35 auto Result = applyAllReplacements( in sort()
/external/clang/tools/clang-format/fuzzer/
DClangFormatFuzzer.cpp23 applyAllReplacements(s, clang::format::reformat( in LLVMFuzzerTestOneInput()
/external/llvm-project/clang/tools/clang-format/fuzzer/
DClangFormatFuzzer.cpp23 auto Result = applyAllReplacements(s, Replaces); in LLVMFuzzerTestOneInput()
/external/clang/include/clang/Tooling/
DRefactoring.h61 bool applyAllReplacements(Rewriter &Rewrite);
/external/llvm-project/clang/include/clang/Tooling/
DRefactoring.h64 bool applyAllReplacements(Rewriter &Rewrite);
/external/llvm-project/clang/unittests/Tooling/
DRefactoringTest.cpp440 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
453 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
463 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
483 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
500 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
508 EXPECT_FALSE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
643 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
922 auto AfterFirst = applyAllReplacements(Code, First); in mergeAndTestRewrite()
924 auto InSequenceRewrite = applyAllReplacements(*AfterFirst, Second); in mergeAndTestRewrite()
930 auto MergedRewrite = applyAllReplacements(Code, Merged); in mergeAndTestRewrite()
[all …]
DRewriterTest.cpp46 auto Rewritten = applyAllReplacements("line1\nline2\nline3\nline4", Replaces); in TEST()
/external/llvm-project/clang/include/clang/Tooling/Core/
DReplacement.h319 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
328 llvm::Expected<std::string> applyAllReplacements(StringRef Code,
/external/llvm-project/clang/unittests/Tooling/Syntax/
DMutationsTest.cpp34 auto Output = tooling::applyAllReplacements(Source.code(), Replacements); in CheckTransformation()
/external/llvm-project/clang-tools-extra/clang-include-fixer/tool/
DClangIncludeFixer.cpp342 tooling::applyAllReplacements(Code->getBuffer(), *Replacements); in includeFixerMain()
441 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), in includeFixerMain()
461 if (!tooling::applyAllReplacements(Replacement, Rewrites)) { in includeFixerMain()
/external/llvm-project/clang-tools-extra/clang-reorder-fields/tool/
DClangReorderFields.cpp78 Tool.applyAllReplacements(Rewrite); in main()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DAtomicChange.cpp337 applyAllReplacements(Code, AllReplaces); in applyAtomicChanges()
347 ChangedCode = applyAllReplacements(*ChangedCode, HeaderSortingReplacements); in applyAtomicChanges()
360 ChangedCode = applyAllReplacements(*ChangedCode, FormatReplacements); in applyAtomicChanges()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DFormatTests.cpp34 auto NewCode = tooling::applyAllReplacements(Code.code(), Merged); in afterTyped()

123