Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

VS 2022 Intellisense not recognizing ICX predefined macros

wmeier
Novice
1,050 Views

Using the Intel C++ 2022 compiler (Version 2022.0.0 Build 20211123) in Visual Studio 2022, Intellisense does not recognize ICX compiler predefined macros such as __INTEL_LLVM_COMPILER and __clang__.

 

VS 2022 Intellisense does work with Intel C++ 19.2, recognizing __INTEL_COMPILER as a predefined macro.

 

Is there a fix for ICX integration into VS 2022?

 

 

Labels (1)
0 Kudos
1 Solution
VarshaS_Intel
Moderator
993 Views

Hi,


We have not heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Varsha


View solution in original post

0 Kudos
5 Replies
VarshaS_Intel
Moderator
1,028 Views

Hi,

 

Thanks for posting in Intel Communities.

 

>>Is there a fix for ICX integration into VS 2022?

Yes, this is a known issue and will be fixed in future updates. 

 

As of now, please find the below workaround:

1. In Visual Studio Project properties, Go to Configuration Properties --> C/C++ --> Preprocessor -->Preprocessor Definitions then add __INTEL_LLVM_COMPILER=202110

 

Please find the below screenshot for more details:

LLVM_MACRO.png

 

Thanks & Regards,

Varsha

 

0 Kudos
VarshaS_Intel
Moderator
994 Views

Hi,


We have not heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Varsha


0 Kudos
VarshaS_Intel
Moderator
964 Views

Hi,

 

I could see you have marked the reminder reply as a solution. Did the solution provided by us help you? If yes, then can we go ahead and close this thread?

 

Thanks & Regards,

Varsha

 

0 Kudos
wmeier
Novice
953 Views

Yes, the provided solution helped me, thank you.  Please close thread.

0 Kudos
VarshaS_Intel
Moderator
932 Views

Hi,


>>Please close thread.

Thanks for the confirmation. 


Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Have a Good day!


Thanks & Regards,

Varsha


0 Kudos
Reply