llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Nico Weber (nico)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/192241.diff


2 Files Affected:

- (modified) clang/include/clang/Options/Options.td (+2-2) 
- (modified) clang/test/Driver/cl-options.c (+2) 


``````````diff
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<SetTrue, [], [ClangOption, CC1Option],
+                  PosFlag<SetTrue, [], [ClangOption, CLOption, CC1Option],
                           "Show inlining chain notes for "
                           "[[gnu::warning/error]] diagnostics">,
-                  NegFlag<SetFalse, [], [ClangOption, CC1Option]>>;
+                  NegFlag<SetFalse, [], [ClangOption, CLOption, CC1Option]>>;
 def fdiagnostics_format_EQ : Joined<["-"], "fdiagnostics-format=">, 
Group<f_clang_Group>;
 def fdiagnostics_show_category_EQ : Joined<["-"], 
"fdiagnostics-show-category=">, Group<f_clang_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 \

``````````

</details>


https://github.com/llvm/llvm-project/pull/192241
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to