<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/121108>121108</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Missing flag to allow using `[[gnu::init_priority]]` in source files
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
philnik777
</td>
</tr>
</table>
<pre>
Currently it's not possible to use `[[gnu::init_priority(100)]]` in source files except by using line control markers. It would be way nicer if there was a diagnostic group to disable this with the diagnostic being an error by default. GCC currently accepts this with a warning without a group instead, which is also annoying, but not as bad as making it only possible with a hack.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEUsGO4yoQ_Bp8aU2EYRwnBx9mMsrTO7xveGowtntDwKJhsv77FVa0M5fVSpZaBqq6urqQmebg3CC6d9F9NFjyEtOwLuQD3fq-b0wct-FSUnIh-w0oC9UzhJhhjcxkvIMcobADcZQ7y_scitBvQr9RoPz_migmyptQp1ZKoc6i-6jfUQIF4FiSdTCRdwzup3VrBrNBYQozeAoObAw5RQ93TDeX-AD_ZnjE4kcwDh64QSDrEtAEeXGpHjEgjIRziJzJwpxiWavIkRh3vQsxPCgvFfH9pXG1KwZwKcVUdYxuwuLzAf65XMD-dgFtFcrfmBAemEKF199YMuCzMQXODkehLvBYyC5ADOg5AoYQNwpzvTEl754ig8GxljveKhtliMFvX2Y_uy1obwch35px0ONZn7FxQ9vrrtVSH3WzDK12k7ZH2R9NJ2WntRqlO_bjZPqzkdg1NCipXlululbps9IHo89ta09yOupTb0cjXqW7I_mD95_3Q0xzQ8zFDa1qW3lqPBrneQ-OUtZjHUTVDKWhAl5MmVm8Sk-c-YsiU_Z72i47ovuA_4j3ZU8e57ol9D4-ngH4W6T-lKSmJD8sOa9cUeoq1HWmvBRzsPEu1LXKeZaXNcUfzmahrvt4LNT1OeHnoH4FAAD__1bBCh8">