I'm new to PlatformIO (and love it), so please forgive me if I'm being n00b here.
I'm using PlatformIO for Arduino, with mostly default settings. There are some C++11 - only features in the code. Arduino compiles with -std=gnu++11 flag by default, so it compiles successfully.
But the linter still warns about features only available with this flag:

I have tried to add -std=gnu++11 flag to .clang_complete file manually, no results.
Is there a way to get rid of these warnings, without giving up all other warnings as well (as would be the case with "gccSuppressWarnings": true)?
Could you provide the code/platformio.ini to reproduce this issue? Thanks.
A clean installation of PlatformIO, on a clean Os X (virtual machine):
src/something.hclass A
{
public:
int a_list[5];
A() :
a_list{1, 2, 3, 4, 5} // This line
{};
};
GCC warning extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default] at line 6 col 6
This warning appears in files with .h or .hpp extension, but not in those with .cpp extension.
.hpp instead .hMenu: Rebuild Index C/C++Does it work?
P.S: I've just checked it under Mac and it works very well.
Please reopen if it doesn't work for you.
Indeed it works! Thanks for the suggestion.
A side note: I'm striving to keep full compatibility with Arduino IDE when using PlatformIO / Atom, and apparently Arduino IDE knows about .hpp files too, so that's nice...
Most helpful comment
Indeed it works! Thanks for the suggestion.
A side note: I'm striving to keep full compatibility with Arduino IDE when using PlatformIO / Atom, and apparently Arduino IDE knows about .hpp files too, so that's nice...