The warnings now in -Wformat-type-confusion don't align with how we interpret 'pedantic' in clang, and don't belong in -pedantic.
Suggested by Aaron here: D66856
Thanks for taking a look!
Erik
Paths
| Differential D67775
[Sema] Split out -Wformat-type-confusion from -Wformat-pedantic ClosedPublic Authored by erik.pilkington on Sep 19 2019, 1:12 PM.
Details Summary The warnings now in -Wformat-type-confusion don't align with how we interpret 'pedantic' in clang, and don't belong in -pedantic. Suggested by Aaron here: D66856 Thanks for taking a look!
Diff Detail Event TimelineComment Actions
Sorry for the delayed review -- thank you for working on clearing this up!
erik.pilkington marked 6 inline comments as done. Comment ActionsAddress review comments.
This revision is now accepted and ready to land.Oct 4 2019, 11:38 AM Closed by commit rL373774: [Sema] Split out -Wformat-type-confusion from -Wformat-pedantic (authored by epilk). · Explain WhyOct 4 2019, 12:23 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 223136 clang/include/clang/AST/FormatString.h
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/FormatString.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/format-bool.c
clang/test/Sema/format-strings-pedantic.c
clang/test/Sema/format-type-confusion.c
|
Can you add: For instance, "%d" and _Bool.