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 223262 cfe/trunk/include/clang/AST/FormatString.h
cfe/trunk/include/clang/Basic/DiagnosticGroups.td
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/AST/FormatString.cpp
cfe/trunk/lib/Sema/SemaChecking.cpp
cfe/trunk/test/Sema/format-bool.c
cfe/trunk/test/Sema/format-strings-pedantic.c
cfe/trunk/test/Sema/format-type-confusion.c
|