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



Could you pass custom flags to CFLAGS and CXXFLAGS sections? See

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?

platform = atmelavr
board = uno
framework = arduino
lib_deps = 
build_flags =

If it is then its not reflected in the .ccls generated from

platformio init --ide emacs --board uno