[cfe-commits] r56092 - /cfe/trunk/Driver/clang.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Wed Sep 10 21:21:08 PDT 2008
Author: akirtzidis
Date: Wed Sep 10 23:21:06 2008
New Revision: 56092
URL: http://llvm.org/viewvc/llvm-project?rev=56092&view=rev
Log:
LangOptions.C99 should be false in C++.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=56092&r1=56091&r2=56092&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Sep 10 23:21:06 2008
@@ -452,6 +452,11 @@
case lang_c89:
break;
}
+
+ if (Options.CPlusPlus) {
+ Options.C99 = 0;
+ Options.HexFloats = (LangStd == lang_gnucxx98 || LangStd==lang_gnucxx0x);
+ }
if (LangStd == lang_c89 || LangStd == lang_c94 || LangStd == lang_gnu89)
Options.ImplicitInt = 1;
More information about the cfe-commits
mailing list