[PATCH] D37042: Teach clang to tolerate the 'p = nullptr + n' idiom used by glibc

Hal Finkel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 25 11:00:58 PDT 2017

hfinkel added a comment.

In https://reviews.llvm.org/D37042#852733, @efriedma wrote:

> It would be nice to warn on any nullptr arithmetic, yes.  (We probably want the wording of the warning to be a bit different if we're activating this workaround.)

+1 (I'll likely want the ability to turn off the warning for one without turning off the warning for the other)


More information about the cfe-commits mailing list