Searched refs:getShiftedCodePosition (Results 1 – 13 of 13) sorted by relevance
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RefactoringTest.cpp | 552 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(0)); // |int i; in TEST() 553 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(1)); // |nt i; in TEST() 554 EXPECT_EQ(1u, Replaces.getShiftedCodePosition(2)); // i|t i; in TEST() 555 EXPECT_EQ(2u, Replaces.getShiftedCodePosition(3)); // in| i; in TEST() 556 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(4)); // int| i; in TEST() 557 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(5)); // int | i; in TEST() 575 EXPECT_EQ(i, Replaces.getShiftedCodePosition(i)); in TEST() 580 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(0)); in TEST() 581 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(39)); in TEST() 582 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(45)); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Format.cpp | 291 unsigned Cursor = Incremental.Changes.getShiftedCodePosition(OriginalCursor); in formatIncremental() 342 FormattingChanges.getShiftedCodePosition(Cursor), in formatIncremental() 343 FormattedCursorEnd = FormattingChanges.getShiftedCodePosition( in formatIncremental() 370 FinalCursor = Pass.second->getShiftedCodePosition(FinalCursor); in formatIncremental()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-apply-replacements/lib/Tooling/ |
| H A D | ApplyReplacements.cpp | 236 Replacements.getShiftedCodePosition(R.getOffset()); in mergeAndDeduplicate() 237 unsigned NewLength = Replacements.getShiftedCodePosition( in mergeAndDeduplicate()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A D | ChangeNamespace.cpp | 133 unsigned NewStart = Replaces.getShiftedCodePosition(R.getOffset()); in getReplacementInChangedCode() 135 Replaces.getShiftedCodePosition(R.getOffset() + R.getLength()); in getReplacementInChangedCode() 978 const unsigned NewOffset = Replaces.getShiftedCodePosition(NsMove.Offset); in onEndOfTranslationUnit() 980 Replaces.getShiftedCodePosition(NsMove.Offset + NsMove.Length) - in onEndOfTranslationUnit() 989 Replaces.getShiftedCodePosition(NsMove.InsertionOffset); in onEndOfTranslationUnit() 1000 Replaces.getShiftedCodePosition(FwdDeclInsertion.InsertionOffset); in onEndOfTranslationUnit()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 158 unsigned NewStart = getShiftedCodePosition(R.getOffset()); in getReplacementInChangedCode() 159 unsigned NewEnd = getShiftedCodePosition(R.getOffset() + R.getLength()); in getReplacementInChangedCode() 546 unsigned Replacements::getShiftedCodePosition(unsigned Position) const { in getShiftedCodePosition() function in Replacements
|
| /llvm-project-15.0.7/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 379 outs() << "<cursor>" << FormatChanges.getShiftedCodePosition(CursorPosition) in outputXML() 525 << FormatChanges.getShiftedCodePosition(CursorPosition) in format()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 270 unsigned getShiftedCodePosition(unsigned Position) const;
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidy.cpp | 159 Replacements.getShiftedCodePosition(R.getOffset()); in reportDiagnostic() 160 unsigned NewLength = Replacements.getShiftedCodePosition( in reportDiagnostic()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/ |
| H A D | IncludeFixer.cpp | 434 R.getFilePath(), Replaces.getShiftedCodePosition(R.getOffset()), in createIncludeFixerReplacements()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | DefineOutline.cpp | 124 unsigned FuncEnd = Replacements.getShiftedCodePosition( in getFunctionSourceAfterReplacements()
|
| H A D | DefineInline.cpp | 210 unsigned BodyEnd = Replacements.getShiftedCodePosition( in qualifyAllDecls()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 280 unsigned NewOffset = Replaces.getShiftedCodePosition(R.getOffset()); in insert()
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | Format.cpp | 3181 Result.getShiftedCodePosition(Replace->getOffset()); in fixCppIncludeInsertions()
|