Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clangd/
DFindTarget.cpp753 llvm::SmallVector<ReferenceLoc, 2> refInDecl(const Decl *D) { in refInDecl()
755 llvm::SmallVector<ReferenceLoc, 2> Refs; in refInDecl()
760 Refs.push_back(ReferenceLoc{D->getQualifierLoc(), in refInDecl()
769 ReferenceLoc{D->getQualifierLoc(), D->getLocation(), /*IsDecl=*/false, in refInDecl()
779 Refs.push_back(ReferenceLoc{D->getQualifierLoc(), in refInDecl()
801 Refs.push_back(ReferenceLoc{getQualifierLoc(*ND), in refInDecl()
810 Refs.push_back(ReferenceLoc{DG->getQualifierLoc(), in refInDecl()
822 llvm::SmallVector<ReferenceLoc, 2> refInStmt(const Stmt *S) { in refInStmt()
825 llvm::SmallVector<ReferenceLoc, 2> Refs; in refInStmt()
828 Refs.push_back(ReferenceLoc{E->getNestedNameSpecifierLoc(), in refInStmt()
[all …]
DFindTarget.h126 struct ReferenceLoc { struct
140 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, ReferenceLoc R); argument
149 llvm::function_ref<void(ReferenceLoc)> Out);
151 llvm::function_ref<void(ReferenceLoc)> Out);
153 llvm::function_ref<void(ReferenceLoc)> Out);
DSemanticHighlighting.cpp121 llvm::Optional<HighlightingKind> kindForReference(const ReferenceLoc &R) { in kindForReference()
393 findExplicitReferences(C, [&](ReferenceLoc R) { in getSemanticHighlightings()
DXRefs.cpp1736 findExplicitReferences(FD, [&](ReferenceLoc Ref) { in getNonLocalDeclRefs()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DFindTargetTests.cpp934 std::vector<ReferenceLoc> Refs; in annotateReferencesInFoo()
936 findExplicitReferences(Func->getBody(), [&Refs](ReferenceLoc R) { in annotateReferencesInFoo()
940 findExplicitReferences(NS, [&Refs, &NS](ReferenceLoc R) { in annotateReferencesInFoo()
950 llvm::sort(Refs, [&](const ReferenceLoc &L, const ReferenceLoc &R) { in annotateReferencesInFoo()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DExtractFunction.cpp179 [&DeclsInExtZone](const ReferenceLoc &Loc) { in requiresHoisting()
194 findExplicitReferences(S, [&](const ReferenceLoc &Loc) { in requiresHoisting()
428 void markOccurence(ZoneRelative ReferenceLoc);
462 ZoneRelative ReferenceLoc) { in markOccurence() argument
463 switch (ReferenceLoc) { in markOccurence()
DRemoveUsingNamespace.cpp151 findExplicitReferences(D, [&](ReferenceLoc Ref) { in apply()
DDefineInline.cpp165 findExplicitReferences(FD->getBody(), [&](ReferenceLoc Ref) { in qualifyAllDecls()
280 [&](ReferenceLoc Ref) { in renameParameters()
DDefineOutline.cpp160 findExplicitReferences(FD, [&](ReferenceLoc Ref) { in getFunctionSourceCode()
/external/llvm-project/clang-tools-extra/clangd/refactor/
DRename.cpp306 findExplicitReferences(TopLevelDecl, [&](ReferenceLoc Ref) { in findOccurrencesWithinFile()