Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clangd/unittests/
DSourceCodeTests.cpp46 TEST(SourceCodeTests, lspLength) { in TEST() argument
47 EXPECT_EQ(lspLength(""), 0UL); in TEST()
48 EXPECT_EQ(lspLength("ascii"), 5UL); 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()
57 EXPECT_EQ(lspLength("ascii"), 5UL); in TEST()
59 EXPECT_EQ(lspLength("↓"), 3UL); in TEST()
60 EXPECT_EQ(lspLength("¥"), 2UL); in TEST()
[all …]
DCodeCompleteTests.cpp1176 P.Offsets.first = lspLength(llvm::StringRef(Label).substr(0, Range.Begin)); in Sig()
1177 P.Offsets.second = lspLength(llvm::StringRef(Label).substr(1, Range.End)); in Sig()
/external/llvm-project/clang-tools-extra/clangd/
DDraftStore.cpp104 lspLength(Contents.substr(*StartIndex, *EndIndex - *StartIndex)); in updateDraft()
DSourceCode.h52 size_t lspLength(StringRef Code);
DSourceCode.cpp151 size_t lspLength(llvm::StringRef Code) { in lspLength() function
212 Pos.character = lspLength(Before.substr(StartOfLine)); in offsetToPosition()
228 P.character = lspLength(LineSoFar); in sourceLocToPosition()
DSemanticHighlighting.cpp254 Position{Line, static_cast<int>(lspLength(LineText))}}}); in collect()
DCodeComplete.cpp952 unsigned ParamStartOffset = lspLength(Signature.label); in processParameterChunk()
953 unsigned ParamEndOffset = ParamStartOffset + lspLength(ChunkText); in processParameterChunk()