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


Attachment: gnucxx0xc9x.patch
Description: gnucxx0xc9x.patch


 
Benoit Belley
Sr Principal Developer
M&E-Product Development Group    
 
Autodesk Canada Inc. 
10 Rue Duke
Montreal, Quebec  H3C 2L7 
Canada
 
Direct 514 954-7154
 
 

<<attachment: image002.gif>>

 

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to