<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/119714>119714</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Early diagnostics don't get associated with their warning groups
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
philnik777
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
philnik777
</td>
</tr>
</table>
<pre>
For example, `clang -fsanitize=undefined -ffine-grained-bitfield-access` produces
```
warning: option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored
```
which is missing the `[-Woption-ignored]` and doesn't get promoted to an error with `-Werror`.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8Us1u4zwMfBr6QjiQ5dhODj6kzZdX6Fk_tMxvFcmQ5Ha7T7-w10WBPSxAgKCAoWaGo3JmF4hG6F5AymVmH_jHMAwgJXT3Sq1ljmn8fq90tJ_jIyakn-q5eAL5itAL41VwWE9ZBS78i6C9r8HSxIEs1tPWa5fUNtaay8Tkba2MoZyhF7ikaFdDGcRtq14cJW4fKgUODtobxqVwDAhy-PdCyiAHNCqEWFATUlDak8USHZWZEn5wmVHhF9cE7QtOXjlkF2Ii-zeFmc2MnPHJOXNwWGbaNEP3Ur_9IVV_Ibv7JkcFizZSDiCHgo7KJvAZy04CVUBKKR48oBf12z5DL04gbpUdW3ttr6qisRnas2iGS99U83gRUlp9tVLQcDXCkmmo75pet_1lonaqeJRCnhvZyKZrh3NzGrprbzrSF6tNr20LZ0FPxf7k_fvzFJOrOOeVxqa5Ds258kqTz0cW9oseMUjjBqj16jKchedc8veKwsXvAXrdEd0d_1PJf6Jl5ULMhU1GG7-tUDlHw2ozYzegzMQJjzujS3FdcrUmP86lLBnaG8gHyIfjMq_6ZOIT5GP7_Gj1kuL_ZArIxy4mg3wcet5H-TsAAP___IPvxw">