Skip to content

support %b and %B from WG14 N2630 in format string checking #56885

Closed
@enh-google

Description

@enh-google

glibc already added %b and %B (and apparently GCC knows about this), and i'm adding them to bionic https://android-review.googlesource.com/c/platform/bionic/+/2169037, but needed to use #pragma to shut clang up for the tests.

one interesting gnarl here is that for Android whether %b/%B are allowed or not will depend on the target API level. (similar should be true for %m which went into API level 29, but no-one's ever complained that clang doesn't know that, so it probably doesn't matter?)

Metadata

Metadata

Assignees

Labels

clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions