reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/tools/extra/clangd/XRefs.cpp
  614   const ASTContext &Ctx = D->getASTContext();
  616   HI.NamespaceScope = getNamespaceScope(D);
  619   HI.LocalScope = getLocalScope(D);
  624   if (const NamedDecl *ND = llvm::dyn_cast<NamedDecl>(D)) {
  629   HI.Kind = indexSymbolKindToSymbolKind(index::getSymbolInfo(D).Kind);
  632   if (const TemplateDecl *TD = D->getDescribedTemplate()) {
  635     D = TD;
  636   } else if (const FunctionDecl *FD = D->getAsFunction()) {
  640       D = FTD;
  645   if (const FunctionDecl *FD = getUnderlyingFunction(D)) {
  679     if (const VarDecl *VD = llvm::dyn_cast<VarDecl>(D))
  680       VD->getType().getDesugaredType(D->getASTContext()).print(TypeOS, Policy);
  685   } else if (const auto *VD = dyn_cast<ValueDecl>(D)) {
  694   if (const auto *Var = dyn_cast<VarDecl>(D)) {
  706   HI.Definition = printDefinition(D);
  707   enhanceFromIndex(HI, D, Index);