|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/Tooling/Core/Replacement.h 270 unsigned getShiftedCodePosition(unsigned Position) const;
References
tools/clang/lib/Format/Format.cpp 2347 Result.getShiftedCodePosition(Replace->getOffset());
tools/clang/lib/Tooling/Core/Replacement.cpp 158 unsigned NewStart = getShiftedCodePosition(R.getOffset());
159 unsigned NewEnd = getShiftedCodePosition(R.getOffset() + R.getLength());
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp 274 unsigned NewOffset = Replaces.getShiftedCodePosition(R.getOffset());
tools/clang/tools/clang-format/ClangFormat.cpp 362 outs() << "<cursor>" << FormatChanges.getShiftedCodePosition(CursorPosition)
453 << FormatChanges.getShiftedCodePosition(CursorPosition)
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 139 unsigned NewStart = Replaces.getShiftedCodePosition(R.getOffset());
141 Replaces.getShiftedCodePosition(R.getOffset() + R.getLength());
988 const unsigned NewOffset = Replaces.getShiftedCodePosition(NsMove.Offset);
990 Replaces.getShiftedCodePosition(NsMove.Offset + NsMove.Length) -
999 Replaces.getShiftedCodePosition(NsMove.InsertionOffset);
1010 Replaces.getShiftedCodePosition(FwdDeclInsertion.InsertionOffset);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp 432 R.getFilePath(), Replaces.getShiftedCodePosition(R.getOffset()),
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp 152 Replacements.getShiftedCodePosition(R.getOffset());
153 unsigned NewLength = Replacements.getShiftedCodePosition(
tools/clang/tools/extra/clangd/Format.cpp 260 unsigned Cursor = Incremental.Changes.getShiftedCodePosition(OriginalCursor);
311 FormattingChanges.getShiftedCodePosition(Cursor),
312 FormattedCursorEnd = FormattingChanges.getShiftedCodePosition(
339 FinalCursor = Pass.second->getShiftedCodePosition(FinalCursor);
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp 218 unsigned BodyEnd = Replacements.getShiftedCodePosition(
tools/clang/unittests/Tooling/RefactoringTest.cpp 552 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(0)); // |int i;
553 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(1)); // |nt i;
554 EXPECT_EQ(1u, Replaces.getShiftedCodePosition(2)); // i|t i;
555 EXPECT_EQ(2u, Replaces.getShiftedCodePosition(3)); // in| i;
556 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(4)); // int| i;
557 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(5)); // int | i;
558 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(6)); // int |i;
559 EXPECT_EQ(4u, Replaces.getShiftedCodePosition(7)); // int |;
560 EXPECT_EQ(5u, Replaces.getShiftedCodePosition(8)); // int i|
566 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(3)); // "123|5678"
567 EXPECT_EQ(7u, Replaces.getShiftedCodePosition(4)); // "1234|678"
568 EXPECT_EQ(8u, Replaces.getShiftedCodePosition(5)); // "12345|78"
575 EXPECT_EQ(i, Replaces.getShiftedCodePosition(i));
580 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(0));
581 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(39));
582 EXPECT_EQ(3u, Replaces.getShiftedCodePosition(45));
583 EXPECT_EQ(0u, Replaces.getShiftedCodePosition(42));