Open kodenamekrak opened 4 months ago
@kodenamekrak Our parser only currently recognizes -fms_extensions
-- would it be acceptable for us to enable all ms extensions when -fdeclspec is encountered or does your scenario only compile with that one specific change and not the other ms extensions?
Enabling ms extensions would be a fine solution since its better that nothing, as for other ms extensions i cannot say as i have mever used any others
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
When using clang the
__declspec
attribute is not recognised in vscode when-fdeclspec
is present in the compiler arguments even though the code compiles succesfully.Steps to reproduce:
The following code compiles perfectly fine with
clang++ main.cpp -fdeclspec
vscode is unable to recognise
__declspec
when-fdeclspec
and shows the following errors:Expected behavior:
__declspec
is seen as valid code like when-fms-extensions
is presentConfiguration and Logs
Other Extensions
This issue still occurs even when c/c++ is the only enabled extension
Additional context
No response