[cfe-commits] r163355 - in /cfe/trunk: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp test/Analysis/retain-release.m

Jordan Rose jordan_rose at apple.com
Thu Sep 6 16:43:57 PDT 2012


On Sep 6, 2012, at 16:03 , Ted Kremenek <kremenek at apple.com> wrote:

> +    if (D->getAttr<CFReturnsNotRetainedAttr>())
> +      os << "that is annotated as CF_RETURNS_NOT_RETAINED";
> +    else if (D->getAttr<NSReturnsNotRetainedAttr>())
> +      os << "that is annotated as NS_RETURNS_NOT_RETAINED";

Not everyone has these macros defined. Maybe we don't care, but on our site we currently document the attribute forms and don't mention at all that (Core)Foundation includes macros for them.



More information about the cfe-commits mailing list