You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anonymous bit fields in structures cause crashes due to duplicate name fields and supports merging multiple bit fields into one underlying type, such as unsigned int.
#104
Open
tsingbx opened this issue
Oct 18, 2024
· 1 comment
1、Supports merging multiple bit fields into one underlying type, such as unsigned int.
2、The ast file should not contain code that the compiler ignores. For example, #ifdef XXX code #endif. The code here should be ignored when XXX is not defined, and the ast file should not contain this code.
The text was updated successfully, but these errors were encountered:
刚刚去看了一下Bit field这块,虽然在这里表达看起来是从 invalid 到 pc 共同组成一个unsigned short ,但实际上这几个是分开的,连续的位域定义可以省略前面的类型,所以这里从invalid开始到pc 都是unsigned short 类型的位域,那我们肯定是不能将其合并为同一个底层类型的
_structs.txt
1、Supports merging multiple bit fields into one underlying type, such as unsigned int.
2、The ast file should not contain code that the compiler ignores. For example, #ifdef XXX code #endif. The code here should be ignored when XXX is not defined, and the ast file should not contain this code.
The text was updated successfully, but these errors were encountered: