VS Arduino | |
>> >> C++14 and C++17 Intellisense
https://www.visualmicro.com/forums/YaBB.pl?num=1579056059 Message started by AustinLindquist on Jan 15th, 2020 at 2:40am |
Title: C++14 and C++17 Intellisense Post by AustinLindquist on Jan 15th, 2020 at 2:40am
Noticed broken intellisense with these enabled. Is there a way to change __cplusplus define in *.vsarduino.h? Would this solve the issue? I've changed manually but it's reverted frequently even with "always re-add header" flag disabled.
Values for reference https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=vs-2019 |
Title: Re: C++14 and C++17 Intellisense Post by Visual Micro on Jan 15th, 2020 at 8:39pm
We will have to add it as an option or work it out automatically. Out of interest what hardware are you using and what are you going to change it too?
Currently you have to edit a text file below the visual micro folder. The visual micro folder is shown in tools>options>visual micro>version>assembly. This is an STM example, you need to change to the folder name that matches your hardware such as \esp32\ or \avr\ etc In a sub folder: [VmFolder]\Micro Platforms\arduino16x\hardware\stm32\intellisense.code.h |
Title: Re: C++14 and C++17 Intellisense Post by AustinLindquist on Jan 21st, 2020 at 1:40pm
I'm targeting ATSAMD21G18, updated my gcc toolchain and CMSIS libs to play nice. Newer C++ features have some cool compile time stuff I want to take advantage of. I was using C++14 but I've updated to C++17 (which would be 201703L flag).
Thanks! EDIT: Added the following lines to the top of my file and it's now propagating: [code] #undef __cplusplus #define __cplusplus 201703L [/code] It's now working as expected :) |
Title: Re: C++14 and C++17 Intellisense Post by Visual Micro on Jan 28th, 2020 at 1:21pm
Can I ask how you updates your gcc and cmsis?
|
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2025. All Rights Reserved. |