/external/llvm-project/clang/lib/Tooling/Core/ |
D | Replacement.cpp | 107 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/ |
D | Replacement.cpp | 95 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/ |
D | Format.cpp | 215 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()
|
D | SourceCode.cpp | 496 return {ReplacementRange, std::string(R.getReplacementText())}; in replacementToEdit()
|
/external/clang/unittests/Tooling/ |
D | ReplacementsYamlTest.cpp | 78 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()
|
D | RefactoringTest.cpp | 657 << M.getReplacementText() << "\n"; in mergeAndTestRewrite() 671 << M.getReplacementText() << "\n"; in mergeAndTestRewrite()
|
/external/llvm-project/clang/unittests/Tooling/ |
D | ReplacementsYamlTest.cpp | 95 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()
|
D | DiagnosticsYamlTest.cpp | 168 EXPECT_EQ("replacement #1", Fixes1[0].getReplacementText()); in TEST() 181 EXPECT_EQ("replacement #2", Fixes2[0].getReplacementText()); in TEST()
|
D | RefactoringTest.cpp | 936 << M.getReplacementText() << "\n"; in mergeAndTestRewrite() 950 << M.getReplacementText() << "\n"; in mergeAndTestRewrite()
|
/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | AtomicChange.cpp | 120 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/ |
D | ReplacementsYaml.h | 38 Length(R.getLength()), ReplacementText(R.getReplacementText()) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
/external/clang/include/clang/Tooling/ |
D | ReplacementsYaml.h | 40 Length(R.getLength()), ReplacementText(R.getReplacementText()) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
/external/llvm-project/clang-tools-extra/clang-tidy/ |
D | ClangTidy.cpp | 151 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/ |
D | Replacement.h | 117 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText() function
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/ |
D | IncludeFixer.cpp | 142 Placed.getReplacementText()); in addDiagnosticsForContext() 435 R.getLength(), R.getReplacementText()); in createIncludeFixerReplacements()
|
/external/llvm-project/clang-tools-extra/clang-apply-replacements/lib/Tooling/ |
D | ApplyReplacements.cpp | 213 R.getLength(), R.getReplacementText()); in mergeAndDeduplicate()
|
/external/llvm-project/clang/include/clang/Tooling/Core/ |
D | Replacement.h | 123 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText() function
|
/external/clang/tools/clang-format/ |
D | ClangFormat.cpp | 234 outputReplacementXML(R.getReplacementText()); in outputReplacementsXML()
|
/external/llvm-project/clang/tools/clang-format/ |
D | ClangFormat.cpp | 299 outputReplacementXML(R.getReplacementText()); in outputReplacementsXML()
|
/external/llvm-project/clang-tools-extra/clang-change-namespace/ |
D | ChangeNamespace.cpp | 137 R.getReplacementText()); in getReplacementInChangedCode() 754 InsertFwd.ForwardDeclText = Insertion.getReplacementText().str(); in moveClassForwardDeclaration()
|
/external/llvm-project/clang/lib/Format/ |
D | Format.cpp | 2546 .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()
|
D | ContinuationIndenter.cpp | 1769 Fix.getLength(), Fix.getReplacementText())); in reformatRawStringLiteral()
|
/external/clang/lib/Format/ |
D | Format.cpp | 1445 llvm::Regex(IncludeRegexPattern).match(Replace.getReplacementText()); in isHeaderInsertion() 1507 << R.getReplacementText() << "\n"; in fixCppIncludeInsertions() 1574 auto IncludeDirective = R.getReplacementText(); in fixCppIncludeInsertions()
|