From 63178468ebf600de9c9518e3ca62cb702afd5c9d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 7 Jan 2018 21:18:02 -0800 Subject: [PATCH] -x c++-header has implicit -std=c++14 --- src/project.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.cc b/src/project.cc index 62f5d2bf..af5ea906 100644 --- a/src/project.cc +++ b/src/project.cc @@ -154,7 +154,7 @@ Project::Entry GetCompilationEntryFromCompileCommandEntry( if (!AnyStartsWith(entry.args, "-std=")) { if (*source_file_type == "c") result.args.push_back("-std=gnu11"); - else if (*source_file_type == "c++") + else if (*source_file_type == "c++" || *source_file_type == "c++-header") result.args.push_back("-std=c++14"); } }