Commit a336b4c
Allow multi word types and typedef'd names as underlying enum types
Our previous attempt only worked with names like `short` or `unsigned`, but not
with e.g. `unsigned short` or `uint32_t`. This patch rectifies that.
Note that unlike clang we currently don't allow CV qualifiers for underlying
types. Since these are ignored by clang anyway, we don't expect to see too much
code in the wild making use of that feature however.1 parent b45ff46 commit a336b4c
3 files changed
+40
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
1840 | 1848 | | |
1841 | 1849 | | |
1842 | 1850 | | |
1843 | 1851 | | |
1844 | 1852 | | |
1845 | 1853 | | |
1846 | | - | |
| 1854 | + | |
1847 | 1855 | | |
1848 | 1856 | | |
1849 | 1857 | | |
| |||
0 commit comments