How do I make pio init put in custom ccls directives? eg
%h -x c++-header
(treat all .h headers as c++)
and/or alter the GnuC versions? eg
%c -std=c14
%cpp -std=c++14
?
Thanks
How do I make pio init put in custom ccls directives? eg
%h -x c++-header
(treat all .h headers as c++)
and/or alter the GnuC versions? eg
%c -std=c14
%cpp -std=c++14
?
Thanks
and how would that generate the %h %c %cpp ccls specific directives in the PIO generated .ccls? I’m sorry, I’m lost now. I cant even see how to modifiy the C version in the .ccls using BUILD_FLAGS in platformio.ini. Isn’t this correct?
[env:uno]
platform = atmelavr
board = uno
framework = arduino
lib_deps =
Stopper@^1.1.3
build_flags =
-std=c++17
If it is then its not reflected in the .ccls generated from
platformio init --ide emacs --board uno
Did you ever figure this out? I’m running into the same issue.