[clang] [llvm] [Sema] Implement support for -Wformat-signedness (PR #74440)
Takuya Shimizu via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 5 03:08:11 PST 2023
================
@@ -918,6 +918,9 @@ def Wdeprecated : Flag<["-"], "Wdeprecated">, Group<W_Group>,
HelpText<"Enable warnings for deprecated constructs and define __DEPRECATED">;
def Wno_deprecated : Flag<["-"], "Wno-deprecated">, Group<W_Group>,
Visibility<[ClangOption, CC1Option]>;
+def Wformat_signedness : Flag<["-"], "Wformat-signedness">,
----------------
hazohelet wrote:
I think the warning option config should go to `clang/include/clang/Basic/DiagnosticSemaKinds.td` instead of the toplevel driver setting. For example, you wouldn't have `-Wno-format-signedness` atm.
https://github.com/llvm/llvm-project/pull/74440
More information about the cfe-commits
mailing list