[clang] 6ee930c - [clang] Expose -fdiagnostics-show-inlining-chain to clang-cl (#192241)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 10:47:20 PDT 2026
Author: Nico Weber
Date: 2026-04-16T13:47:14-04:00
New Revision: 6ee930cb48a8716c884bb7d4991c0c1e05b3e766
URL: https://github.com/llvm/llvm-project/commit/6ee930cb48a8716c884bb7d4991c0c1e05b3e766
DIFF: https://github.com/llvm/llvm-project/commit/6ee930cb48a8716c884bb7d4991c0c1e05b3e766.diff
LOG: [clang] Expose -fdiagnostics-show-inlining-chain to clang-cl (#192241)
Added:
Modified:
clang/include/clang/Options/Options.td
clang/test/Driver/cl-options.c
Removed:
################################################################################
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 \
More information about the cfe-commits
mailing list