Searched refs:lspLength (Results 1 – 7 of 7) sorted by relevance
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | SourceCodeTests.cpp | 46 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 …]
|
D | CodeCompleteTests.cpp | 1176 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/ |
D | DraftStore.cpp | 104 lspLength(Contents.substr(*StartIndex, *EndIndex - *StartIndex)); in updateDraft()
|
D | SourceCode.h | 52 size_t lspLength(StringRef Code);
|
D | SourceCode.cpp | 151 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()
|
D | SemanticHighlighting.cpp | 254 Position{Line, static_cast<int>(lspLength(LineText))}}}); in collect()
|
D | CodeComplete.cpp | 952 unsigned ParamStartOffset = lspLength(Signature.label); in processParameterChunk() 953 unsigned ParamEndOffset = ParamStartOffset + lspLength(ChunkText); in processParameterChunk()
|