Home
last modified time | relevance | path

Searched refs:getReplacementText (Results 1 – 23 of 23) sorted by relevance

/external/llvm-project/clang/lib/Tooling/Core/
DReplacement.cpp107 return LHS.getReplacementText() < RHS.getReplacementText(); in operator <()
114 LHS.getReplacementText() == RHS.getReplacementText(); in operator ==()
161 R.getReplacementText()); in getReplacementInChangedCode()
208 (Prev.getReplacementText() + R.getReplacementText()).str()); in getCanonicalReplacements()
275 if ((R.getReplacementText() + I->getReplacementText()).str() != in add()
276 (I->getReplacementText() + R.getReplacementText()).str()) in add()
282 (R.getReplacementText() + I->getReplacementText()).str()); in add()
371 Length(R.getLength()), Text(std::string(R.getReplacementText())) { in MergedReplacement()
390 Text = (Head + R.getReplacementText() + Tail).str(); in merge()
391 Delta += R.getReplacementText().size() - R.getLength(); in merge()
[all …]
/external/clang/lib/Tooling/Core/
DReplacement.cpp95 return LHS.getReplacementText() < RHS.getReplacementText(); in operator <()
102 LHS.getReplacementText() == RHS.getReplacementText(); in operator ==()
146 Offset += R.getReplacementText().size() - R.getLength(); in shiftedCodePositionInternal()
150 R.getOffset() + R.getReplacementText().size() <= Position) { in shiftedCodePositionInternal()
151 Position = R.getOffset() + R.getReplacementText().size() - 1; in shiftedCodePositionInternal()
179 return LHS.getReplacementText() < RHS.getReplacementText(); in deduplicate()
185 LHS.getReplacementText() == RHS.getReplacementText(); in deduplicate()
272 I->getReplacementText()); in applyAllReplacements()
314 unsigned Length = R.getReplacementText().size(); in calculateChangedRanges()
360 Text(R.getReplacementText()) { in MergedReplacement()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DFormat.cpp215 LengthChange += R.getReplacementText().size() - R.getLength(); in split()
219 ReplacementSplit <= int(R.getReplacementText().size()) && in split()
223 R.getReplacementText().take_front(ReplacementSplit))); in split()
227 R.getReplacementText().drop_front(ReplacementSplit))); in split()
295 if (R.getReplacementText().empty()) // Deletions are easy to handle. in formatIncremental()
360 Offset += R.getReplacementText().size(); in transformCursorPosition()
366 if (PositionWithinReplacement > R.getReplacementText().size()) { in transformCursorPosition()
367 Offset += R.getReplacementText().size(); in transformCursorPosition()
DSourceCode.cpp496 return {ReplacementRange, std::string(R.getReplacementText())}; in replacementToEdit()
/external/clang/unittests/Tooling/
DReplacementsYamlTest.cpp78 ASSERT_EQ("replacement #1", DocActual.Replacements[0].getReplacementText()); in TEST()
82 ASSERT_EQ("replacement #2", DocActual.Replacements[1].getReplacementText()); in TEST()
105 ASSERT_EQ("replacement", DocActual.Replacements[0].getReplacementText()); in TEST()
DRefactoringTest.cpp657 << M.getReplacementText() << "\n"; in mergeAndTestRewrite()
671 << M.getReplacementText() << "\n"; in mergeAndTestRewrite()
/external/llvm-project/clang/unittests/Tooling/
DReplacementsYamlTest.cpp95 ASSERT_EQ("replacement #1", DocActual.Replacements[0].getReplacementText()); in TEST()
99 ASSERT_EQ("replacement #2", DocActual.Replacements[1].getReplacementText()); in TEST()
121 ASSERT_EQ("replacement", DocActual.Replacements[0].getReplacementText()); in TEST()
DDiagnosticsYamlTest.cpp168 EXPECT_EQ("replacement #1", Fixes1[0].getReplacementText()); in TEST()
181 EXPECT_EQ("replacement #2", Fixes2[0].getReplacementText()); in TEST()
DRefactoringTest.cpp936 << M.getReplacementText() << "\n"; in mergeAndTestRewrite()
950 << M.getReplacementText() << "\n"; in mergeAndTestRewrite()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DAtomicChange.cpp120 int End = Start + R.getReplacementText().size(); in getRangesForFormating()
121 if (!R.getReplacementText().empty() && in getRangesForFormating()
122 R.getReplacementText().back() == '\n' && R.getLength() == 0 && in getRangesForFormating()
128 Offset += R.getReplacementText().size() - R.getLength(); in getRangesForFormating()
189 FilePath, R.getOffset(), R.getLength(), R.getReplacementText()))) in combineReplacementsInChanges()
283 RE.getExistingReplacement()->getReplacementText().size(); in insert()
/external/llvm-project/clang/include/clang/Tooling/
DReplacementsYaml.h38 Length(R.getLength()), ReplacementText(R.getReplacementText()) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/clang/include/clang/Tooling/
DReplacementsYaml.h40 Length(R.getLength()), ReplacementText(R.getReplacementText()) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/llvm-project/clang-tools-extra/clang-tidy/
DClangTidy.cpp151 Repl.getLength(), Repl.getReplacementText()); in reportDiagnostic()
165 R.getReplacementText()); in reportDiagnostic()
272 Diag << FixItHint::CreateReplacement(Range, Repl.getReplacementText()); in reportFix()
/external/clang/include/clang/Tooling/Core/
DReplacement.h117 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText() function
/external/llvm-project/clang-tools-extra/clang-include-fixer/
DIncludeFixer.cpp142 Placed.getReplacementText()); in addDiagnosticsForContext()
435 R.getLength(), R.getReplacementText()); in createIncludeFixerReplacements()
/external/llvm-project/clang-tools-extra/clang-apply-replacements/lib/Tooling/
DApplyReplacements.cpp213 R.getLength(), R.getReplacementText()); in mergeAndDeduplicate()
/external/llvm-project/clang/include/clang/Tooling/Core/
DReplacement.h123 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText() function
/external/clang/tools/clang-format/
DClangFormat.cpp234 outputReplacementXML(R.getReplacementText()); in outputReplacementsXML()
/external/llvm-project/clang/tools/clang-format/
DClangFormat.cpp299 outputReplacementXML(R.getReplacementText()); in outputReplacementsXML()
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp137 R.getReplacementText()); in getReplacementInChangedCode()
754 InsertFwd.ForwardDeclText = Insertion.getReplacementText().str(); in moveClassForwardDeclaration()
/external/llvm-project/clang/lib/Format/
DFormat.cpp2546 .match(Replace.getReplacementText()); in isHeaderInsertion()
2569 HeadersToDelete.insert(R.getReplacementText()); in fixCppIncludeInsertions()
2573 << R.getReplacementText() << "\n"; in fixCppIncludeInsertions()
2601 auto IncludeDirective = R.getReplacementText(); in fixCppIncludeInsertions()
2616 Replace->getReplacementText()); in fixCppIncludeInsertions()
DContinuationIndenter.cpp1769 Fix.getLength(), Fix.getReplacementText())); in reformatRawStringLiteral()
/external/clang/lib/Format/
DFormat.cpp1445 llvm::Regex(IncludeRegexPattern).match(Replace.getReplacementText()); in isHeaderInsertion()
1507 << R.getReplacementText() << "\n"; in fixCppIncludeInsertions()
1574 auto IncludeDirective = R.getReplacementText(); in fixCppIncludeInsertions()