Home
last modified time | relevance | path

Searched refs:sourceLocationInMainFile (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSourceCodeTests.cpp296 EXPECT_THAT_EXPECTED(sourceLocationInMainFile(SM, position(0, 0)), in TEST()
300 sourceLocationInMainFile(SM, position(4, 0)), in TEST()
303 EXPECT_THAT_EXPECTED(sourceLocationInMainFile(SM, position(0, 1)), Failed()); in TEST()
304 EXPECT_THAT_EXPECTED(sourceLocationInMainFile(SM, position(0, 100)), in TEST()
306 EXPECT_THAT_EXPECTED(sourceLocationInMainFile(SM, position(4, 1)), Failed()); in TEST()
308 EXPECT_THAT_EXPECTED(sourceLocationInMainFile(SM, position(5, 0)), Failed()); in TEST()
312 EXPECT_THAT_EXPECTED(sourceLocationInMainFile(SM, P), in TEST()
538 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST()
552 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST()
H A DCollectMacrosTests.cpp89 auto Loc = sourceLocationInMainFile(SM, ExpectedRefs.begin()->start); in TEST()
H A DASTTests.cpp244 auto Location = sourceLocationInMainFile(SM.get(), Pos); in TEST()
H A DXRefsTests.cpp1242 cantFail(sourceLocationInMainFile(AST.getSourceManager(), T.point())), in TEST()
1732 SpelledWord::touching(cantFail(sourceLocationInMainFile(SM, T.point())), in TEST()
2446 sourceLocationInMainFile(AST.getSourceManager(), File.point())); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.h76 llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM,
H A DXRefs.cpp764 auto CurLoc = sourceLocationInMainFile(SM, Pos); in locateSymbolAt()
1236 auto CurLoc = sourceLocationInMainFile(SM, Pos); in findDocumentHighlights()
1287 auto CurLoc = sourceLocationInMainFile(SM, Pos); in findImplementations()
1337 auto CurLoc = sourceLocationInMainFile(SM, Pos); in findReferences()
1508 auto CurLoc = sourceLocationInMainFile(SM, Pos); in getSymbolInfo()
2125 auto Loc = sourceLocationInMainFile(SM, Pos); in prepareCallHierarchy()
H A DSourceCode.cpp453 llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM, in sourceLocationInMainFile() function
H A DHover.cpp966 auto CurLoc = sourceLocationInMainFile(SM, Pos); in getHover()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp666 auto StartLoc = cantFail(sourceLocationInMainFile(SM, Range.start)); in handleMacros()
667 auto EndLoc = cantFail(sourceLocationInMainFile(SM, Range.end)); in handleMacros()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp700 auto Loc = sourceLocationInMainFile(SM, RInputs.Pos); in rename()