From 36bb6d5d467350fa8056237cde4c5147a82f5938 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Sat, 9 Dec 2017 12:09:54 +0000 Subject: Switch to gnu++14 as the default dialect. This is C++14 with conforming GNU extensions. llvm-svn: 320250 --- clang/lib/Frontend/CompilerInvocation.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 59e5b62c5e8..2ebdc2a62aa 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1729,11 +1729,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, break; case InputKind::CXX: case InputKind::ObjCXX: - // The PS4 uses C++11 as the default C++ standard. - if (T.isPS4()) - LangStd = LangStandard::lang_gnucxx11; - else - LangStd = LangStandard::lang_gnucxx98; + LangStd = LangStandard::lang_gnucxx14; break; case InputKind::RenderScript: LangStd = LangStandard::lang_c99; -- cgit v1.2.3