| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SourceCodeTests.cpp | 237 EXPECT_THAT(offsetToPosition(File, 0), Pos(0, 0)) << "start of file"; in TEST() 238 EXPECT_THAT(offsetToPosition(File, 3), Pos(0, 3)) << "in first line"; in TEST() 240 EXPECT_THAT(offsetToPosition(File, 7), Pos(0, 7)) << "first newline"; in TEST() 243 EXPECT_THAT(offsetToPosition(File, 13), Pos(1, 5)) << "in BMP char"; in TEST() 248 EXPECT_THAT(offsetToPosition(File, 21), Pos(2, 3)) << "in last line"; in TEST() 253 EXPECT_THAT(offsetToPosition(File, 29), Pos(2, 9)) << "EOF"; in TEST() 258 EXPECT_THAT(offsetToPosition(File, 0), Pos(0, 0)) << "start of file"; in TEST() 259 EXPECT_THAT(offsetToPosition(File, 3), Pos(0, 3)) << "in first line"; in TEST() 261 EXPECT_THAT(offsetToPosition(File, 7), Pos(0, 7)) << "first newline"; in TEST() 264 EXPECT_THAT(offsetToPosition(File, 13), Pos(1, 5)) << "in BMP char"; in TEST() [all …]
|
| H A D | Annotations.cpp | 16 return offsetToPosition(code(), Base::point(Name)); in point() 25 Ps.push_back(offsetToPosition(code(), O)); in points() 32 LSPRange.start = offsetToPosition(Code, R.Begin); in toLSPRange() 33 LSPRange.end = offsetToPosition(Code, R.End); in toLSPRange()
|
| H A D | InsertionPointTests.cpp | 77 EXPECT_EQ(offsetToPosition(Code.code(), Edit->getOffset()), Code.point("b")); in TEST() 82 EXPECT_EQ(offsetToPosition(Code.code(), Edit->getOffset()), in TEST() 130 EXPECT_EQ(offsetToPosition(Code.code(), Edit->getOffset()), in TEST() 135 EXPECT_EQ(offsetToPosition(Code.code(), Edit->getOffset()), in TEST() 140 EXPECT_EQ(offsetToPosition(Code.code(), Edit->getOffset()), in TEST()
|
| H A D | SelectionTests.cpp | 54 return Range{Position{}, offsetToPosition(Buffer, Buffer.size())}; in nodeRange() 59 offsetToPosition(Buffer, SM.getFileOffset(FileRange->getBegin())), in nodeRange() 60 offsetToPosition(Buffer, SM.getFileOffset(FileRange->getEnd()))}; in nodeRange()
|
| H A D | IncludeCleanerTests.cpp | 258 Points.push_back(offsetToPosition( in TEST()
|
| H A D | PreambleTests.cpp | 396 getHover(*AST, offsetToPosition(Modified.code(), Modified.point()), in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | SemanticSelection.cpp | 199 Position Start = offsetToPosition( in getFoldingRanges() 202 Position End = offsetToPosition( in getFoldingRanges()
|
| H A D | SourceCode.h | 68 Position offsetToPosition(llvm::StringRef Code, size_t Offset);
|
| H A D | SourceCode.cpp | 201 Position offsetToPosition(llvm::StringRef Code, size_t Offset) { in offsetToPosition() function 498 offsetToPosition(Code, R.getOffset()), in replacementToEdit() 499 offsetToPosition(Code, R.getOffset() + R.getLength())}; in replacementToEdit() 1153 ER.EligiblePoints.emplace_back(offsetToPosition(Code, Code.size())); in getEligiblePoints()
|
| H A D | IncludeCleaner.cpp | 222 Result.end = Result.start = offsetToPosition(Code, HashOffset); in getDiagnosticRange()
|
| H A D | CodeComplete.cpp | 1545 auto Pos = offsetToPosition(Content, Offset); in runWithoutSema()
|
| /llvm-project-15.0.7/clang/unittests/Sema/ |
| H A D | CodeCompleteTest.cpp | 92 ParsedSourceLocation offsetToPosition(llvm::StringRef Code, size_t Offset) { in offsetToPosition() function 105 std::make_unique<CodeCompleteAction>(offsetToPosition(Code, Offset), in runCompletion()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/tool/ |
| H A D | Check.cpp | 223 Position Pos = offsetToPosition(Inputs.Contents, Start); in testLocationFeatures() 264 Position EndPos = offsetToPosition(Inputs.Contents, End); in testLocationFeatures()
|