[PATCH] D131057: [Sema] -Wformat: support C23 printf %b %B
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 3 01:17:42 PDT 2022
MaskRay created this revision.
MaskRay added reviewers: aaron.ballman, dim, enh, erik.pilkington.
Herald added a subscriber: StephenFan.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Close #56885. %b %B are from WG14 N2630 and supported by glibc from 2.35 onwards and latest Android bionic.
Like GCC, we don't test library support.
GCC 12 -Wformat -pedantic emits a warning:
> warning: ISO C17 does not support the ‘%b’ gnu_printf format [-Wformat=]
The behavior is not ported (and it's unclear to me how to implement it).
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8200 bytes
Desc: not available
More information about the cfe-commits