Searched refs:lspLength (Results 1 – 7 of 7) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SourceCodeTests.cpp | 46 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 D | CodeCompleteTests.cpp | 1278 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 D | SourceCode.h | 53 size_t lspLength(StringRef Code);
|
| H A D | SourceCode.cpp | 148 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 D | IncludeCleaner.cpp | 226 lspLength(Code.drop_front(HashOffset).take_until([](char C) { in getDiagnosticRange()
|
| H A D | CodeComplete.cpp | 1066 unsigned ParamStartOffset = lspLength(Signature.label); in processParameterChunk() 1067 unsigned ParamEndOffset = ParamStartOffset + lspLength(ChunkText); in processParameterChunk()
|
| H A D | SemanticHighlighting.cpp | 436 static_cast<int>(lspLength(LineText)); in collect()
|