diff --git a/clang/include/clang/Options/Options.td b/clang/include/clang/Options/Options.td index 96ecc8fbdeb83..5673fb0c47d5b 100644 --- a/clang/include/clang/Options/Options.td +++ b/clang/include/clang/Options/Options.td @@ -2239,10 +2239,10 @@ defm diagnostics_show_note_include_stack : BoolFOption<"diagnostics-show-note-in defm diagnostics_show_inlining_chain : BoolFOption<"diagnostics-show-inlining-chain", CodeGenOpts<"ShowInliningChain">, DefaultFalse, - PosFlag, - NegFlag>; + NegFlag>; def fdiagnostics_format_EQ : Joined<["-"], "fdiagnostics-format=">, Group; def fdiagnostics_show_category_EQ : Joined<["-"], "fdiagnostics-show-category=">, Group; def fdiagnostics_show_template_tree : Flag<["-"], "fdiagnostics-show-template-tree">, diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index b77a6cd6eb21f..919a926cd7e66 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -716,6 +716,8 @@ // RUN: -ffile-compilation-dir=. \ // RUN: -fdiagnostics-parseable-fixits \ // RUN: -fdiagnostics-absolute-paths \ +// RUN: -fdiagnostics-show-inlining-chain \ +// RUN: -fno-diagnostics-show-inlining-chain \ // RUN: -ferror-limit=10 \ // RUN: -fident \ // RUN: -fno-ident \