Lines Matching defs:CurDecl
119 for (const auto *CurDecl : Declarations) {
120 if (CurDecl->hasDefinition() || CurDecl->isReferenced()) {
123 if (FriendTypes.contains(CurDecl->getTypeForDecl())) {
126 if (CurDecl->getLocation().isMacroID() ||
127 CurDecl->getLocation().isInvalid()) {
132 if (Decl == CurDecl) {
135 if (!CurDecl->hasDefinition() &&
136 !haveSameNamespaceOrTranslationUnit(CurDecl, Decl)) {
137 diag(CurDecl->getLocation(),
140 << CurDecl << getNameOfNamespace(Decl);
148 const auto DeclName = CurDecl->getName();
157 diag(CurDecl->getLocation(),
160 << CurDecl << Def << getNameOfNamespace(Def);