<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/142775>142775</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang c++20compat warnings trigger on assembly-with-cpp files.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tru
</td>
</tr>
</table>
<pre>
```
> bat foo.S -p
# requires
> clang++ foo.S -Wc++20-compat -std=c++17 -c
foo.S:1:3: warning: 'requires' is a keyword in C++20 [-Wc++20-compat]
1 | # requires
| ^
1 warning generated.
```
This seems like it shouldn't trigger for this file.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkUdGOpCoQ_ZrypaJBkLZ94MHunv6Be5N9RimVHRQXcCbz9xt77d7NLiGBqjrUoc7RMdpxIVIgLyBvmd7S5INKYcs6b74UnNixWQviDTudcPC--A_zdU9xgYF-bDZQPBC908sI_AL88kR-63_FnOW9n1edMI_JgLgd-bLGvAfWPuAg2hJEK0C0-KnDYpdxvwKvX0S8RhtR4zt9ffpg0C54fTIgyMu_hCBvwFosEeor_vVpfKy9gAjyDVhbPolxpIWCTmSKfbo_tWDt_5ONGInmiM6-E9qEcfKbMwvwOmEKdhwp4OADph06WEdFZpQwjWh0Rqqsq4ZVoqlFNiniupHlSVNjGmqq6mxkcx64HM7sfNbylFnFGZfsxKpSCC5ZUQ0lVcaIriNxrqiEitGsrSuc-5gLH8bMxriRKite1zJzuiMXHz5zfpjEgV9fkWiN1ePiY7J93GvylgW1N8u7bYxQMWdjir_bJ5scqev-GF-CHwYfAsaXDH5BHSPNnfvKP22a8n5dH5LEItuCU1NKawTRAr8Dv482TVtX9H4Gft8JjyNfg_9OfQJ-fwwXgd-P-T4U_xkAAP__RXHX_Q">