[cfe-commits] patch: implement nonnull on overloaded binary operators

Matt Beaumont-Gay matthewbg at google.com
Wed Jan 23 17:52:37 PST 2013


+        // Cut off the implicit 'this'.
+        if (isa<CXXMethodDecl>(FnDecl))
+          ArgsArray = ArgsArray.slice(1);

What about static methods?

On Wed, Jan 23, 2013 at 5:15 PM, Nick Lewycky <nlewycky at google.com> wrote:
> GCC supports attribute nonnull on overloaded operators, but clang doesn't.
> This patch adds support to the code path around binary operators, as I don't
> think it's possible to make it fire on overloaded unary operators.
>
> Please review!
>
> Nick
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list