Lines 1765-1771
void CompilerInvocation::setLangDefaults(LangOptio
Link Here
|
1765 |
break; |
1765 |
break; |
1766 |
case InputKind::CXX: |
1766 |
case InputKind::CXX: |
1767 |
case InputKind::ObjCXX: |
1767 |
case InputKind::ObjCXX: |
1768 |
LangStd = LangStandard::lang_gnucxx14; |
1768 |
// The PS4 uses C++11 as the default C++ standard. |
|
|
1769 |
if (T.isPS4()) |
1770 |
LangStd = LangStandard::lang_gnucxx11; |
1771 |
else |
1772 |
LangStd = LangStandard::lang_gnucxx98; |
1769 |
break; |
1773 |
break; |
1770 |
case InputKind::RenderScript: |
1774 |
case InputKind::RenderScript: |
1771 |
LangStd = LangStandard::lang_c99; |
1775 |
LangStd = LangStandard::lang_c99; |