buga

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: value of __cpluspluc macro in intellisense #35931
    buga
    Participant

    I would recommend adding an additional property, the LanguageStandard. It doesn’t mean anything to vgdb, but vs will treat all source files as C++23 instead of C++14. It might be useful.
    I’ve tried using defines* in the source or conditions in the *.vcproj file to automatically set the LanguageStandard based on CPPLanguageStandard, but neither of them was successful.
    (*I modified intellisense.props and introduced __cplusplus_vgdb instead of __cplusplus, then later redefined __cplusplus using __cplusplus_vgdb.)
    <div>
    <div>    <ClCompile></div>
    <div>      <LanguageStandard>stdcpplatest</LanguageStandard></div>
    <div>      <AdditionalOptions>$(IntelliSenseCommandline) %(AdditionalOptions)</AdditionalOptions></div>
    <div>    </ClCompile></div>
    </div>

Viewing 1 post (of 1 total)