Searched refs:getShiftedCodePosition (Results 1 – 12 of 12) sorted by relevance
/external/llvm-project/clang-tools-extra/clangd/ |
D | Format.cpp | 262 unsigned Cursor = Incremental.Changes.getShiftedCodePosition(OriginalCursor); in formatIncremental() 313 FormattingChanges.getShiftedCodePosition(Cursor), in formatIncremental() 314 FormattedCursorEnd = FormattingChanges.getShiftedCodePosition( in formatIncremental() 341 FinalCursor = Pass.second->getShiftedCodePosition(FinalCursor); in formatIncremental()
|
/external/llvm-project/clang/unittests/Tooling/ |
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() 558 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(6)); // int |i; in TEST() 559 EXPECT_EQ(4u, Replaces.getShiftedCodePosition(7)); // int |; in TEST() 560 EXPECT_EQ(5u, Replaces.getShiftedCodePosition(8)); // int i| in TEST() 566 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(3)); // "123|5678" in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-change-namespace/ |
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()
|
/external/llvm-project/clang/lib/Tooling/Core/ |
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
|
/external/llvm-project/clang/tools/clang-format/ |
D | ClangFormat.cpp | 344 outs() << "<cursor>" << FormatChanges.getShiftedCodePosition(CursorPosition) in outputXML() 440 << FormatChanges.getShiftedCodePosition(CursorPosition) in format()
|
/external/llvm-project/clang/include/clang/Tooling/Core/ |
D | Replacement.h | 270 unsigned getShiftedCodePosition(unsigned Position) const;
|
/external/llvm-project/clang-tools-extra/clang-tidy/ |
D | ClangTidy.cpp | 159 Replacements.getShiftedCodePosition(R.getOffset()); in reportDiagnostic() 160 unsigned NewLength = Replacements.getShiftedCodePosition( in reportDiagnostic()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | DefineOutline.cpp | 129 unsigned FuncEnd = Replacements.getShiftedCodePosition( in getFunctionSourceAfterReplacements()
|
D | DefineInline.cpp | 219 unsigned BodyEnd = Replacements.getShiftedCodePosition( in qualifyAllDecls()
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/ |
D | IncludeFixer.cpp | 434 R.getFilePath(), Replaces.getShiftedCodePosition(R.getOffset()), in createIncludeFixerReplacements()
|
/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | AtomicChange.cpp | 280 unsigned NewOffset = Replaces.getShiftedCodePosition(R.getOffset()); in insert()
|
/external/llvm-project/clang/lib/Format/ |
D | Format.cpp | 2614 Result.getShiftedCodePosition(Replace->getOffset()); in fixCppIncludeInsertions()
|