<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55467>55467</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] modernize-macro-to-enum can generate invalid initializers in C
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug,
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
LegalizeAdulthood
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
LegalizeAdulthood
</td>
</tr>
</table>
<pre>
C requires that enum values fit into an `int`, but modernize-macro-to-enum allows larger values.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1UMFuwyAM_ZrkghIREtJy4NC12mk_QYKbMJHQgenUfv3cqNMmTZOQ_Z4tnp89BHvTRxbhI7sIieFskMGaF3Y1PlPh7JC5FQMzKyt6TpBiIY5syMiWYCGu7g7VYsYYKgzV9td4Hz4T8yZOEJ9KdWl1a1WrTIkOPehCvozerFOFzt4KefpXbaTRE6wQDQJ5ITlnKTt0hO4QExF2LHP0eka8pKI9FOKV3uRwzkM9hoWI99fvVF1ieIcRibqUyBsBKbt-V866kbYHtTuPalRWNJ06A1dy3PeN2vPuvCu9GcCnh_tCiCFPFB_noPRrG6rJU-m04EJw2UjOKfK6N6Zph77rWiW42e-LjsNinK8fruoQpzLqzSDpJmp6lzD9NE1KbloBnsPfYNoOcLDZ4xyCfY41mVjUf9rltqzeNv0CUv6mkQ">