================
@@ -348,6 +348,13 @@ New Compiler Flags
 - New options for enabling allocation token instrumentation: 
``-fsanitize=alloc-token``, ``-falloc-token-max=``, 
``-fsanitize-alloc-token-fast-abi``, ``-fsanitize-alloc-token-extended``.
 - The ``-resource-dir`` option is now displayed in the list of options shown 
by ``--help``.
 - New option ``-fmatrix-memory-layout`` added to control the memory layout of 
Clang matrix types. (e.g. ``-fmatrix-memory-layout=column-major`` or 
``-fmatrix-memory-layout=row-major``).
+- New option ``-fdiagnostics-show-inlining-chain`` added to show inlining chain
+  notes for ``[[gnu::warning]]`` and ``[[gnu::error]]`` diagnostics. When a
+  function with these attributes is called from an inlined context, Clang can
+  now show which functions were inlined to reach the call. When debug info is
+  available (``-gline-directives-only`` or higher), accurate source locations
----------------
nickdesaulniers wrote:

If you use `diagtool tree`, you'll get a printout of the hierarchy of 
diagnostic group flags from clang. I assume that `-gline-directives-only` is 
implicitly enabled at `-g1` (and higher).  Verify that assumption; if it holds, 
it might be worth adding:

```suggestion
  available (``-gline-directives-only`` (implicitly enabled at ``-O1``)) or 
higher), accurate source locations
```

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

Reply via email to