Home | History | Annotate | Download | only in Sema

Lines Matching defs:ID

81         // This can be null for calls to e.g. id<Foo>.
364 ObjCInterfaceDecl *ID = candidate.getCorrectionDeclAs<ObjCInterfaceDecl>();
365 return ID && !declaresSameEntity(ID, CurrentIDecl);
690 ObjCInterfaceDecl *ID) {
691 if (!ID)
695 for (ObjCInterfaceDecl::method_iterator i = ID->meth_begin(),
696 e = ID->meth_end(); i != e; ++i) {
1152 // Reject a protocol-unqualified id.
1155 // If B is a qualified id, then A must also be a qualified id and it must
1157 // For example, MyClass<A> can be assigned to id<A>, but MyClass<A> is a
1158 // stricter definition so it is not substitutable for id<A>.
1167 // id is a special type that bypasses type checking completely. We want a
1172 // If B is a qualified id, then A must also be a qualified id (which it isn't
1781 if (ObjCInterfaceDecl *ID = C->getClassInterface())
1782 if (ObjCImplDecl *IMP = ID->getImplementation()) {
1941 /// TODO: Handle protocol list; such as id<p1,p2> in type comparisons
2149 ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(ClassDecl);
2150 if (ID == 0) return;
2152 while (ObjCInterfaceDecl *SD = ID->getSuperClass()) {
2156 ID = SD;
2176 ID = SD;
2185 void Sema::DiagnoseDuplicateIvars(ObjCInterfaceDecl *ID,
2187 for (ObjCInterfaceDecl::ivar_iterator IVI = ID->ivar_begin(),
2188 IVE = ID->ivar_end(); IVI != IVE; ++IVI) {
2274 /// The following allows us to typecheck messages to "id".
2513 // - it is id or qualified id, or
2721 } else { // get the type for "id".
2724 << FixItHint::CreateInsertion(SelectorLocs.front(), "(id)");
2972 const FieldDecl* ID = cast<FieldDecl>(Ivars[i]);
2975 /*FIXME: StartL=*/ID->getLocation(),
2976 ID->getLocation(),
2977 ID->getIdentifier(), ID->getType(),
2978 ID->getBitWidth());
2997 IdentifierInfo *Id,
3022 VarDecl *New = VarDecl::Create(Context, CurContext, StartLoc, IdLoc, Id,