Skip to content

Commit 304454f

Browse files
authored
[clang-cl] Accept the --warning-suppression-mappings= option (#133092)
1 parent 7b130f4 commit 304454f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ def Wa_COMMA : CommaJoined<["-"], "Wa,">,
877877
def warning_suppression_mappings_EQ : Joined<["--"],
878878
"warning-suppression-mappings=">, Group<Diag_Group>,
879879
HelpText<"File containing diagnostic suppression mappings. See user manual "
880-
"for file format.">, Visibility<[ClangOption, CC1Option]>;
880+
"for file format.">, Visibility<[ClangOption, CLOption, CC1Option]>;
881881
def Wall : Flag<["-"], "Wall">, Group<W_Group>, Flags<[HelpHidden]>,
882882
Visibility<[ClangOption, CC1Option, FlangOption]>;
883883
def WCL4 : Flag<["-"], "WCL4">, Group<W_Group>, Flags<[HelpHidden]>,

clang/test/Driver/cl-options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@
746746
// RUN: -fwrapv-pointer \
747747
// RUN: -fno-wrapv-pointer \
748748
// RUN: --version \
749+
// RUN: --warning-suppression-mappings=foo \
749750
// RUN: -Werror /Zs -- %s 2>&1
750751

751752
// Accept clang options under the /clang: flag.

0 commit comments

Comments
 (0)