Switch C compilations to C11 by default.
This is long-since overdue, and matches GCC 5.0. This should also be backwards-compatible, because we already supported all of C11 as an extension in C99 mode. llvm-svn: 220244
This commit is contained in:
@@ -1129,7 +1129,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,
|
||||
case IK_PreprocessedC:
|
||||
case IK_ObjC:
|
||||
case IK_PreprocessedObjC:
|
||||
LangStd = LangStandard::lang_gnu99;
|
||||
LangStd = LangStandard::lang_gnu11;
|
||||
break;
|
||||
case IK_CXX:
|
||||
case IK_PreprocessedCXX:
|
||||
|
||||
Reference in New Issue
Block a user