[PATCH] D37042: Teach clang to tolerate the 'p = nullptr + n' idiom used by glibc
Andy Kaylor via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 30 14:25:11 PDT 2017
andrew.w.kaylor updated this revision to Diff 113311.
andrew.w.kaylor added a comment.
Refactored the GNU idiom check to be shared by Sema and CodeGen.
Refined the checks so that nullptr+0 doesn't warn in C++.
Added the zero offset qualification in the warning produced with C++.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12772 bytes
Desc: not available
More information about the cfe-commits