Justin Stitt
f9ad232421
[Clang] Show inlining hints for __attribute__((warning/error)) ( #174892 )
...
When functions marked with `[[gnu::warning/error]]` are called through inlined functions, we now show the inlining chain that led to the call when ``-fdiagnostics-show-inlining-chain`` is enabled.
With this flag, two modes are possible:
- **heuristic** mode: Uses `srcloc` and `inlined.from` metadata to reconstruct the inlining chain. Functions that are `inline`, `static`, `always_inline`, or in anonymous namespaces get `srcloc` metadata attached. This mode emits a note suggesting `-gline-directives-only` for more accurate locations.
- **debug** mode: Automatically used instead of heuristic when building with at least `-gline-directives-only` (implied by `-g1` or higher). Leverages `DILocation` debug info for reliable source locations.
Fixes: https://github.com/ClangBuiltLinux/linux/issues/1571
2026-03-27 13:52:31 -07:00
..
2026-03-26 10:26:09 +00:00
2025-07-29 00:13:46 +08:00
2025-03-29 20:54:15 +01:00
2026-03-17 08:41:22 +00:00
2026-02-21 23:08:18 +01:00
2026-02-27 12:17:20 -08:00
2025-11-19 12:15:15 +01:00
2025-10-30 13:42:32 +01:00
2026-02-20 18:40:32 +00:00
2025-11-16 08:12:23 -08:00
2025-11-16 08:12:23 -08:00
2025-11-07 08:57:18 -08:00
2026-01-26 18:03:09 +01:00
2025-11-16 08:12:23 -08:00
2025-11-07 08:57:18 -08:00
2025-11-16 16:01:06 +00:00
2026-03-23 21:46:44 -07:00
2026-03-06 13:58:56 -06:00
2026-02-26 19:02:39 +00:00
2025-12-05 17:27:47 -08:00
2025-11-07 08:57:18 -08:00
2025-11-07 08:57:18 -08:00
2025-10-26 13:34:07 -07:00
2025-11-07 08:57:18 -08:00
2025-08-05 14:50:48 +01:00
2025-11-27 14:22:59 +01:00
2025-11-16 08:12:23 -08:00
2025-11-16 08:12:23 -08:00
2026-02-23 18:35:35 +00:00
2025-11-07 08:57:18 -08:00
2025-11-07 08:57:18 -08:00
2025-06-28 15:27:55 +02:00
2025-06-28 15:27:55 +02:00
2025-06-28 15:27:55 +02:00
2025-11-16 08:12:23 -08:00
2025-11-07 08:57:18 -08:00
2025-11-16 08:12:23 -08:00
2025-10-10 03:06:21 +02:00
2025-04-25 14:13:17 +02:00
2025-11-07 08:57:18 -08:00
2026-03-13 23:15:17 -04:00
2026-03-16 13:21:53 +00:00
2026-03-18 02:07:01 +00:00
2025-11-16 08:12:23 -08:00
2026-03-25 15:03:14 -07:00
2025-11-16 08:12:23 -08:00
2025-11-07 08:57:18 -08:00
2026-01-13 14:07:12 -05:00
2025-11-07 08:57:18 -08:00
2025-11-04 17:13:23 +01:00
2025-11-07 08:57:18 -08:00
2026-03-15 20:04:17 +01:00
2026-03-16 13:21:53 +00:00
2026-01-29 14:51:21 -08:00
2026-02-10 23:13:56 +00:00
2025-12-17 17:04:28 -05:00
2026-01-29 00:03:03 +01:00
2025-11-16 08:12:23 -08:00
2026-03-05 11:29:31 -08:00
2026-01-15 13:02:34 +00:00
2025-11-21 09:17:43 +08:00
2026-03-27 11:45:00 -05:00
2026-02-19 13:54:33 -08:00
2025-11-16 08:12:23 -08:00
2025-11-16 08:12:23 -08:00
2025-11-16 08:12:23 -08:00
2025-11-16 08:12:23 -08:00
2026-03-27 13:52:31 -07:00
2026-01-16 09:57:21 +01:00
2026-02-09 13:59:47 -08:00
2025-11-16 08:12:23 -08:00
2026-03-17 14:08:53 +01:00
2026-02-19 13:54:33 -08:00
2025-07-31 21:31:23 +05:30
2026-01-31 13:31:02 +09:00
2026-02-12 16:22:00 +08:00
2026-02-19 15:19:35 -08:00
2025-08-01 09:16:22 +01:00
2026-03-23 16:21:23 +01:00
2026-02-16 12:20:40 +01:00
2025-06-29 23:47:21 +05:30
2026-03-09 15:42:25 +00:00
2026-02-19 13:54:33 -08:00
2026-03-19 14:03:20 +01:00
2025-11-14 14:00:38 -08:00