reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
3914 if (!Method) continue; // Already issued a diagnostic. 3915 if (Method->isInstanceMethod()) { 3917 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; 3918 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) 3922 Diag(Method->getLocation(), diag::err_duplicate_method_decl) 3923 << Method->getDeclName(); 3925 Method->setInvalidDecl(); 3928 Method->setAsRedeclaration(PrevMethod); 3930 Method->getLocation())) 3931 Diag(Method->getLocation(), diag::warn_duplicate_method_decl) 3932 << Method->getDeclName(); 3935 InsMap[Method->getSelector()] = Method; 3935 InsMap[Method->getSelector()] = Method; 3937 AddInstanceMethodToGlobalPool(Method); 3941 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()]; 3942 bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) 3946 Diag(Method->getLocation(), diag::err_duplicate_method_decl) 3947 << Method->getDeclName(); 3949 Method->setInvalidDecl(); 3952 Method->setAsRedeclaration(PrevMethod); 3954 Method->getLocation())) 3955 Diag(Method->getLocation(), diag::warn_duplicate_method_decl) 3956 << Method->getDeclName(); 3959 ClsMap[Method->getSelector()] = Method; 3959 ClsMap[Method->getSelector()] = Method; 3960 AddFactoryMethodToGlobalPool(Method);