Add -std=c++1y argument, for *highly* experimental C++14 support.

llvm-svn: 166139
This commit is contained in:
Richard Smith
2012-10-17 23:07:52 +00:00
parent 68e5dfddcb
commit 460fe6ba47
6 changed files with 28 additions and 4 deletions

View File

@@ -288,6 +288,8 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
else if (!LangOpts.GNUMode && LangOpts.Digraphs)
Builder.defineMacro("__STDC_VERSION__", "199409L");
} else {
// FIXME: LangOpts.CPlusPlus1y
// C++11 [cpp.predefined]p1:
// The name __cplusplus is defined to the value 201103L when compiling a
// C++ translation unit.