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
When requesting preprocessed output specified on the command-line to clang-cl ("/P"), the output does not expand _CRT_PACKING.
Reproduction steps:
Create a file with #include <windows.h>
clang-cl /P
Observe results in .i by searching for #pragma pack(push,_CRT_PACKING)
Expected Results:
#pragma pack(push,_CRT_PACKING) should not be found and it should be #pragma pack(push,8)
Other notes:
This was observed by trying to compile a file using pre-processed source output, so a good test case might be to #include <windows.h>, preprocess, then try to compile the preprocessed file. If successful, it's fixed.
The text was updated successfully, but these errors were encountered:
Extended Description
MSVC uses directives that look like:
#pragma push(pack,_CRT_PACKING)
When requesting preprocessed output specified on the command-line to clang-cl ("/P"), the output does not expand _CRT_PACKING.
Reproduction steps:
Expected Results:
Other notes:
The text was updated successfully, but these errors were encountered: