PlatformIO Community

Modifying directives in the pio init when generating a .ccls file

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

Could you pass custom flags to CFLAGS and CXXFLAGS sections? See http://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#split-c-c-build-flags

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