Lines Matching refs:TypeForDecl
2230 if (Decl->TypeForDecl) {
2231 assert(isa<InjectedClassNameType>(Decl->TypeForDecl));
2233 assert(PrevDecl->TypeForDecl && "previous declaration has no type");
2234 Decl->TypeForDecl = PrevDecl->TypeForDecl;
2235 assert(isa<InjectedClassNameType>(Decl->TypeForDecl));
2239 Decl->TypeForDecl = newType;
2242 return QualType(Decl->TypeForDecl, 0);
2249 assert(!Decl->TypeForDecl && "TypeForDecl present in slow case");
2269 Decl->TypeForDecl = newType;
2274 return QualType(Decl->TypeForDecl, 0);
2282 if (Decl->TypeForDecl) return QualType(Decl->TypeForDecl, 0);
2288 Decl->TypeForDecl = newType;
2294 if (Decl->TypeForDecl) return QualType(Decl->TypeForDecl, 0);
2297 if (PrevDecl->TypeForDecl)
2298 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0);
2301 Decl->TypeForDecl = newType;
2307 if (Decl->TypeForDecl) return QualType(Decl->TypeForDecl, 0);
2310 if (PrevDecl->TypeForDecl)
2311 return QualType(Decl->TypeForDecl = PrevDecl->TypeForDecl, 0);
2314 Decl->TypeForDecl = newType;
2864 if (Decl->TypeForDecl)
2865 return QualType(Decl->TypeForDecl, 0);
2868 assert(PrevDecl->TypeForDecl && "previous decl has no TypeForDecl");
2869 Decl->TypeForDecl = PrevDecl->TypeForDecl;
2870 return QualType(PrevDecl->TypeForDecl, 0);
2879 Decl->TypeForDecl = T;