Lines Matching refs:TypeForDecl
2753 if (Decl->TypeForDecl) {
2754 assert(isa<InjectedClassNameType>(Decl->TypeForDecl));
2756 assert(PrevDecl->TypeForDecl && "previous declaration has no type");
2757 Decl->TypeForDecl = PrevDecl->TypeForDecl;
2758 assert(isa<InjectedClassNameType>(Decl->TypeForDecl));
2762 Decl->TypeForDecl = newType;
2765 return QualType(Decl->TypeForDecl, 0);
2772 assert(!Decl->TypeForDecl && "TypeForDecl present in slow case");
2792 Decl->TypeForDecl = newType;
2797 return QualType(Decl->TypeForDecl, 0);
2805 if (Decl->TypeForDecl) return QualType(Decl->TypeForDecl, 0);
2811 Decl->TypeForDecl = newType;
2817 if (Decl->TypeForDecl) return QualType(Decl->TypeForDecl, 0);
2820 if (PrevDecl->TypeForDecl)
2821 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0);
2824 Decl->TypeForDecl = newType;
2830 if (Decl->TypeForDecl) return QualType(Decl->TypeForDecl, 0);
2833 if (PrevDecl->TypeForDecl)
2834 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0);
2837 Decl->TypeForDecl = newType;
3394 if (Decl->TypeForDecl)
3395 return QualType(Decl->TypeForDecl, 0);
3398 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl");
3399 Decl->TypeForDecl = PrevDecl->TypeForDecl;
3400 return QualType(PrevDecl->TypeForDecl, 0);
3409 Decl->TypeForDecl = T;