Synonym -Wno-cpp for -Wno-#warnings. That one is not a headache for
authorespie <espie@openbsd.org>
Fri, 2 Jun 2017 10:52:26 +0000 (10:52 +0000)
committerespie <espie@openbsd.org>
Fri, 2 Jun 2017 10:52:26 +0000 (10:52 +0000)
scripting.
(got it into upstream, it's just a backport)
okay kettenis@, patrick@

gnu/llvm/tools/clang/include/clang/Basic/DiagnosticGroups.td

index 4173d03..812d7c9 100644 (file)
@@ -719,6 +719,7 @@ def Pedantic : DiagGroup<"pedantic">;
 // Aliases.
 def : DiagGroup<"", [Extra]>;                   // -W = -Wextra
 def : DiagGroup<"endif-labels", [ExtraTokens]>; // -Wendif-labels=-Wextra-tokens
+def : DiagGroup<"cpp", [PoundWarning]>;         // -Wcpp = -W#warnings
 def : DiagGroup<"comments", [Comment]>;         // -Wcomments = -Wcomment
 def : DiagGroup<"conversion-null",
                 [NullConversion]>; // -Wconversion-null = -Wnull-conversion