On Jul 25, 2009, at 2:56 PM, Fariborz Jahanian wrote: >> + /// getNoReturnAttr() - Return the noreturn attribute of this >> type. > > Since functions returns bool, comment is confusing. > Maybe, return 'true' if type has noreturn attribute; false, > otherwise.
Fixed. > This function does not preserve the other attributes. For example, > block pointers can be __weak/__strong. > See ASTContext::getObjCGCQualType. Fixed. >> + if (Attr.getNumArgs() != 0) > Don't you want to issue error here? There is already error checking that comes from the application to the decl and one here would be a dup of that one. >> + return; >> + >> + // We only apply this to a pointer to function or a pointer to >> block. >> + if (!Type->isFunctionPointerType() >> + && !Type->isBlockPointerType() >> + && !Type->isFunctionType()) > > And here? Likewise. Thanks. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
