Home
last modified time | relevance | path

Searched refs:PreferredDeclaration (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DXRefs.cpp236 File.PreferredDeclaration = { in locateFileReferent()
238 File.Definition = File.PreferredDeclaration; in locateFileReferent()
256 Macro.PreferredDeclaration = *Loc; in locateMacroReferent()
318 Result.back().PreferredDeclaration = *Loc; in locateASTReferent()
402 R.PreferredDeclaration = *Loc; in locateASTReferent()
415 getPreferredLocation(R.PreferredDeclaration, in locateASTReferent()
418 R.PreferredDeclaration = *Loc; in locateASTReferent()
505 Located.PreferredDeclaration = *MaybeDeclLoc; in locateSymbolTextually()
513 Located.PreferredDeclaration = *MaybeDefLoc; in locateSymbolTextually()
1169 Loc.PreferredDeclaration = *DeclLoc; in findImplementations()
[all …]
DXRefs.h47 Location PreferredDeclaration; member
DClangdLSPServer.cpp1119 if (!Sym.Definition || *Sym.Definition == Sym.PreferredDeclaration) in getToggle()
1123 return &Sym.PreferredDeclaration; in getToggle()
1124 if (Sym.PreferredDeclaration.uri.file() == Point.textDocument.uri.file() && in getToggle()
1125 Sym.PreferredDeclaration.range.contains(Point.position)) in getToggle()
1142 Defs.push_back(S.Definition.getValueOr(S.PreferredDeclaration)); in onGoToDefinition()
1161 Decls.push_back(std::move(S.PreferredDeclaration)); in onGoToDeclaration()
1327 Impls.push_back(Sym.PreferredDeclaration); in onGoToImplementation()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DXRefsTests.cpp54 return Sym.PreferredDeclaration.range == Range;
269 if (Decl != arg.PreferredDeclaration.range) {
271 << llvm::to_string(arg.PreferredDeclaration);
765 EXPECT_EQ(Results[0].PreferredDeclaration.range, *WantDecl) << Test; in TEST()
848 EXPECT_EQ(Results[Idx].PreferredDeclaration.range, Ranges[Idx].WantDecl) in TEST()
900 EXPECT_EQ(Results[0].PreferredDeclaration.range, *WantDecl) << Test; in TEST()
975 EXPECT_EQ(Results[0].PreferredDeclaration.range, *WantDecl) << Test; in TEST()
DClangdTests.cpp64 return arg.PreferredDeclaration ==
361 EXPECT_EQ(Result->front().PreferredDeclaration.range, Example.range()); in TEST()
367 EXPECT_NE(Result->front().PreferredDeclaration.range, Example.range()); in TEST()