<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/125552>125552</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`-Wattributes` warnings with `clang::Sema`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
code-quality
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
firewave
</td>
</tr>
</table>
<pre>
```
In file included from /home/user/CLionProjects/llvm-project/clang/include/clang/Parse/Parser.h:20,
from /home/user/CLionProjects/llvm-project/clang/lib/Parse/ParseExpr.cpp:29:
/home/user/CLionProjects/llvm-project/clang/include/clang/Sema/Sema.h:466:7: warning: ‘clang::Sema’ declared with greater visibility than the type of its field ‘clang::Sema::UnusedFileScopedDecls’ [-Wattributes]
466 | class Sema final : public SemaBase {
| ^~~~
/home/user/CLionProjects/llvm-project/clang/include/clang/Sema/Sema.h:466:7: warning: ‘clang::Sema’ declared with greater visibility than the type of its field ‘clang::Sema::TentativeDefinitions’ [-Wattributes]
/home/user/CLionProjects/llvm-project/clang/include/clang/Sema/Sema.h:466:7: warning: ‘clang::Sema’ declared with greater visibility than the type of its field ‘clang::Sema::ExtVectorDecls’ [-Wattributes]
/home/user/CLionProjects/llvm-project/clang/include/clang/Sema/Sema.h:466:7: warning: ‘clang::Sema’ declared with greater visibility than the type of its field ‘clang::Sema::DelegatingCtorDecls’ [-Wattributes]
```
Also occurs from many other source files.
I am using `gcc (GCC) 14.2.1 20240910` on Manjaro Linux.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzkVV2PpTYM_TXmxRoUwvcDD8y9Q7XSVlpp-_EcgoGsQkKTcGfmZX57BfdudztV1ZG6b4OQYixsx-cc2cJ7NRmiBvJ7yM-R2MJsXTMqR4_iQlFvh-cGCnZ7WfvB4Kg0oTJSbwMNODq7IPButgsB7zZPDnh3-qis-eTsF5LBA--0vix36_UbeCe1MBPw7pblO88n4Tx9PV08Q9pyBvwErMXXz_8qrVX_utzD0-piua57zRrSFlj74xr7TIu4HUdXWVFA2paQtvgonFFm2k144FAxqKtrWNpC2h6RN3-NA0ktHA34qMKMkyMRyOFFedUrrcIzhlkYDDNheF4J7YgqeBwV6eHfsx_Wr2bzNHRK02dpVxrOJLX_Vhjy-7vfRQhO9VsgD_n54CQrCoTyhFIL73HPhqMyQuPezrr1WsnDey88IZT3fxG5B92s_OHl5eWdof0LmSCCutCZRmVUUNb8F9jvCZ6Hp_AbyWDdW1T4noA5k6ZJBGWm01vR-W58A2tb7S1aKTfnrxN0EeYZbZjJobebk3RMeB9ff_-AYsHNKzMhFGySEoFXP51OwGtMspjHCXLGM1Ynewm0Bn8W5otwFj8qsz3F0dCkQ53WIqImKdOqYCXLkmhuclHVZSr6TIhqZDwZkjItxMjlQGmeZUmkGs54zjhLk4pnjMUyr_uirnjCyiqtJUHGaBFKxzu9sXVTpLzfqEl4nuc80qIn7Y_Nxrm0A939sYkdfOB833WuOWTRb5OHjGnlg_-WKaigad98f8OzYF9l4K_MQsFes1SwaHO6mUNY_e7mHfBuUmHe-lja5abGf4ryuPsu1tv1Lw3_MwAA__9sIGDt">