fix compile_commands.json when generated with modern gcc
Change-Id: I4a17cfb567f5ebec8bb416b9aa4d58763ff36c36
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 90a732d..b016bfe 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -379,7 +379,7 @@ class VimIntegrationGenerator(IdeIntegrationGenerator):
command += ' -c '
command += file
# Help clang when the tree is configured for gcc.
for gnu in ('-std=gnu++11', '-std=gnu++1y'):
for gnu in ('-std=gnu++11', '-std=gnu++1y', '-std=gnu++17'):
command = command.replace(gnu, '-std=c++11')
return command