Home | History | Annotate | Download | only in Sema

Lines Matching refs:decl

267 void Sema::AddAnyMethodToGlobalPool(Decl *D) {
270 // If we don't have a valid method decl, simply return.
300 void Sema::ActOnStartOfObjCMethodDef(Scope *FnBodyScope, Decl *D) {
304 // If we don't have a valid method decl, simply return.
312 // Create Decl objects for each parameter, entrring them in the scope for
508 // The previous declaration was not a class decl. Check if we have a
695 ArrayRef<Decl *> typeParamsIn,
899 Decl *Sema::
906 Decl * const *ProtoRefs, unsigned NumProtoRefs,
924 // A previous decl with a different name is because of
930 // A lookup for 'OldImage' will return the 'NewImage' decl.
1030 void Sema::ActOnTypedefedProtocols(SmallVectorImpl<Decl *> &ProtocolRefs,
1050 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc,
1122 Decl *
1126 Decl * const *ProtoRefs,
1209 SmallVectorImpl<Decl *> &Protocols) {
1232 // can set the objc decl as the availability context, otherwise check now.
1326 SmallVectorImpl<Decl *> &protocols,
1360 // can set the objc decl as the availability context, otherwise check now.
1385 if (auto *decl = LookupSingleName(S, identifiers[i], identifierLocs[i],
1387 if (isa<ObjCInterfaceDecl>(decl)) {
1390 } else if (!isa<TypeDecl>(decl)) {
1448 NamedDecl *decl = LookupSingleName(S, identifiers[i], identifierLocs[i],
1450 if (!decl) {
1455 if (auto typeDecl = dyn_cast<TypeDecl>(decl)) {
1461 if (auto objcClass = dyn_cast<ObjCInterfaceDecl>(decl)) {
1526 assert(numTypeDeclsResolved == identifiers.size() && "Unresolved type decl");
1686 SmallVector<Decl *, 8> DeclsInGroup;
1711 Decl *Sema::
1717 Decl * const *ProtoRefs,
1731 // the enclosing method declarations. We mark the decl invalid
1804 Decl *Sema::ActOnStartCategoryImplementation(
1871 Decl *Sema::ActOnStartClassImplementation(
1936 // Build, chain & install the interface decl into the identifier.
2000 Sema::ActOnFinishObjCImplementation(Decl *ObjCImpDecl, ArrayRef<Decl *> Decls) {
2001 SmallVector<Decl *, 64> DeclsInGroup;
2005 Decl *Dcl = Decls[i];
2021 assert(ImpDecl && "missing implementation decl");
2025 /// Check case of non-existing \@interface decl.
2026 /// (legacy objective-c \@implementation decl without an \@interface decl).
2219 static bool objcModifiersConflict(Decl::ObjCDeclQualifier x,
2220 Decl::ObjCDeclQualifier y) {
2221 return (x & ~Decl::OBJC_TQ_CSNullability) !=
2222 (y & ~Decl::OBJC_TQ_CSNullability);
2260 ((MethodImpl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability)
2264 ((MethodDecl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability)
2346 ((ImplVar->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability)
2350 ((IfaceVar->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability)
2395 ObjCMethodDecl *decl) {
2397 ObjCMethodFamily declFamily = decl->getMethodFamily();
2406 if (impl->isInvalidDecl() || decl->isInvalidDecl()) return true;
2413 unmatched = decl;
2459 S.Diag(decl->getLocation(), noteID) << int(familySelector) << int(reasonSelector);
2952 SmallVector<Decl *, 8> DeclsInGroup;
2990 // A previous decl with a different name is because of
2996 // A lookup for 'OldImage' will return the 'NewImage' decl.
3317 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl())
3679 case Decl::ObjCInterface:
3681 case Decl::ObjCProtocol:
3683 case Decl::ObjCCategory:
3687 case Decl::ObjCImplementation:
3689 case Decl::ObjCCategoryImpl:
3698 Decl *Sema::ActOnAtEnd(Scope *S, SourceRange AtEnd, ArrayRef<Decl *> allMethods,
3706 Decl *ClassDecl = cast<Decl>(OCD);
3868 // Find category interface decl and then check that all methods declared
3903 static Decl::ObjCDeclQualifier
3905 return (Decl::ObjCDeclQualifier) (unsigned) PQTVal;
4001 case Decl::type: \
4002 searchFrom(cast<type##Decl>(container)); \
4005 #define DECL(type, base) \
4006 case Decl::type:
4254 method->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability,
4257 prevMethod->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability);
4271 param->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability,
4273 prevParam->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability);
4278 Decl *Sema::ActOnMethodDeclaration(
4297 Decl *ClassDecl = cast<Decl>(OCD);
4502 bool Sema::CheckObjCDeclScope(Decl *D) {
4521 void Sema::ActOnDefs(Scope *S, Decl *TagD, SourceLocation DeclStart,
4523 SmallVectorImpl<Decl*> &Decls) {
4542 Decl *FD = ObjCAtDefsFieldDecl::Create(Context, Record,
4551 for (SmallVectorImpl<Decl*>::iterator D = Decls.begin();
4603 Decl *Sema::ActOnObjCExceptionDecl(Scope *S, Declarator &D) {