View | Details | Raw Unified | Return to bug 224669 | Differences between
and this patch

Collapse All | Expand All

(-)contrib/llvm/tools/clang/lib/Frontend/CompilerInvocation.cpp (-1 / +5 lines)
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;

Return to bug 224669