[clang] [llvm] [Clang] Show inlining hints for __attribute__((warning/error)) (PR #174892)
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 7 23:34:36 PST 2026
================
@@ -8397,6 +8397,13 @@ pointing to precise locations of the call site in the source.
dontcall(); // No Warning
sizeof(dontcall()); // No Warning
}
+
+When the call occurs through inlined functions, the
+``-fdiagnostics-show-inlining-chain=`` option can be used to show the
+inlining chain that led to the call. This helps identify which call site
+triggered the diagnostic when the attributed function is called from
+multiple locations through inline functions. See ``clang --help`` for
+available modes.
----------------
nickdesaulniers wrote:
I don't think we want our HTML docs to say "run `clang --help` for the options." This is our official docs, spell them out!!!
https://github.com/llvm/llvm-project/pull/174892
More information about the cfe-commits
mailing list