Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/unittests/Tooling/
H A 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()
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 DFormat.cpp291 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 DApplyReplacements.cpp236 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 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()
/llvm-project-15.0.7/clang/lib/Tooling/Core/
H A 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
/llvm-project-15.0.7/clang/tools/clang-format/
H A DClangFormat.cpp379 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 DReplacement.h270 unsigned getShiftedCodePosition(unsigned Position) const;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidy.cpp159 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 DIncludeFixer.cpp434 R.getFilePath(), Replaces.getShiftedCodePosition(R.getOffset()), in createIncludeFixerReplacements()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DDefineOutline.cpp124 unsigned FuncEnd = Replacements.getShiftedCodePosition( in getFunctionSourceAfterReplacements()
H A DDefineInline.cpp210 unsigned BodyEnd = Replacements.getShiftedCodePosition( in qualifyAllDecls()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp280 unsigned NewOffset = Replaces.getShiftedCodePosition(R.getOffset()); in insert()
/llvm-project-15.0.7/clang/lib/Format/
H A DFormat.cpp3181 Result.getShiftedCodePosition(Replace->getOffset()); in fixCppIncludeInsertions()