Home
last modified time | relevance | path

Searched refs:lspLength (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSourceCodeTests.cpp46 TEST(SourceCodeTests, lspLength) { in TEST() argument
47 EXPECT_EQ(lspLength(""), 0UL); in TEST()
50 EXPECT_EQ(lspLength("↓"), 1UL); in TEST()
51 EXPECT_EQ(lspLength("¥"), 1UL); in TEST()
53 EXPECT_EQ(lspLength("��"), 2UL); in TEST()
56 EXPECT_EQ(lspLength(""), 0UL); in TEST()
59 EXPECT_EQ(lspLength("↓"), 3UL); in TEST()
60 EXPECT_EQ(lspLength("¥"), 2UL); in TEST()
65 EXPECT_EQ(lspLength(""), 0UL); in TEST()
68 EXPECT_EQ(lspLength("↓"), 1UL); in TEST()
[all …]
H A DCodeCompleteTests.cpp1278 P.Offsets.first = lspLength(llvm::StringRef(Label).substr(0, Range.Begin)); in sig()
1279 P.Offsets.second = lspLength(llvm::StringRef(Label).substr(1, Range.End)); in sig()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.h53 size_t lspLength(StringRef Code);
H A DSourceCode.cpp148 size_t lspLength(llvm::StringRef Code) { in lspLength() function
209 Pos.character = lspLength(Before.substr(StartOfLine)); in offsetToPosition()
225 P.character = lspLength(LineSoFar); in sourceLocToPosition()
1092 lspLength(Contents.substr(*StartIndex, *EndIndex - *StartIndex)); in applyChange()
H A DIncludeCleaner.cpp226 lspLength(Code.drop_front(HashOffset).take_until([](char C) { in getDiagnosticRange()
H A DCodeComplete.cpp1066 unsigned ParamStartOffset = lspLength(Signature.label); in processParameterChunk()
1067 unsigned ParamEndOffset = ParamStartOffset + lspLength(ChunkText); in processParameterChunk()
H A DSemanticHighlighting.cpp436 static_cast<int>(lspLength(LineText)); in collect()