[cfe-commits] [PATCH] --std=gnu++0xc9x : Allowing C++0x, C99 and GNU extensions
Benoit Belley
Benoit.Belley at autodesk.com
Thu Sep 2 15:31:38 PDT 2010
Hi Everyone
To compile my application, I need to enable both the C++0x and C99 language features along with the GNU extensions (yes, I know this seems crazy but it is true!). Previously, that was not possible with Clang. The following patch makes that possible by adding the command-line options : --std=gnu++0xc9x.
Index: include/clang/Frontend/LangStandards.def
===================================================================
--- include/clang/Frontend/LangStandards.def (revision 112699)
+++ include/clang/Frontend/LangStandards.def (working copy)
@@ -74,6 +74,10 @@
"Upcoming ISO C++ 200x with amendments and GNU extensions",
BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode)
+LANGSTANDARD(gnucxx0xc9x, "gnu++0xc9x",
+ "Upcoming ISO C++ 200x with amendments and ISO C 1999 and GNU extensions",
+ BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode | C99 | HexFloat)
+
// OpenCL
LANGSTANDARD(opencl, "cl ยป,
Benoit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnucxx0xc9x.patch
Type: application/octet-stream
Size: 687 bytes
Desc: gnucxx0xc9x.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100902/9a1370b8/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001..txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100902/9a1370b8/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 651 bytes
Desc: image002.gif
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100902/9a1370b8/attachment.gif>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00002..txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100902/9a1370b8/attachment-0001.txt>
More information about the cfe-commits
mailing list