Home
last modified time | relevance | path

Searched refs:getShiftedCodePosition (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DFormat.cpp262 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/
DRefactoringTest.cpp552 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/
DChangeNamespace.cpp133 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/
DReplacement.cpp158 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/
DClangFormat.cpp344 outs() << "<cursor>" << FormatChanges.getShiftedCodePosition(CursorPosition) in outputXML()
440 << FormatChanges.getShiftedCodePosition(CursorPosition) in format()
/external/llvm-project/clang/include/clang/Tooling/Core/
DReplacement.h270 unsigned getShiftedCodePosition(unsigned Position) const;
/external/llvm-project/clang-tools-extra/clang-tidy/
DClangTidy.cpp159 Replacements.getShiftedCodePosition(R.getOffset()); in reportDiagnostic()
160 unsigned NewLength = Replacements.getShiftedCodePosition( in reportDiagnostic()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineOutline.cpp129 unsigned FuncEnd = Replacements.getShiftedCodePosition( in getFunctionSourceAfterReplacements()
DDefineInline.cpp219 unsigned BodyEnd = Replacements.getShiftedCodePosition( in qualifyAllDecls()
/external/llvm-project/clang-tools-extra/clang-include-fixer/
DIncludeFixer.cpp434 R.getFilePath(), Replaces.getShiftedCodePosition(R.getOffset()), in createIncludeFixerReplacements()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DAtomicChange.cpp280 unsigned NewOffset = Replaces.getShiftedCodePosition(R.getOffset()); in insert()
/external/llvm-project/clang/lib/Format/
DFormat.cpp2614 Result.getShiftedCodePosition(Replace->getOffset()); in fixCppIncludeInsertions()