]> granicus.if.org Git - clang/commitdiff
Basic: Add CUDA language option
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 1 Dec 2010 03:15:10 +0000 (03:15 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 1 Dec 2010 03:15:10 +0000 (03:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120543 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/LangOptions.h

index 2fef7bad469f631a51887392cd65636f68b0e5b5..aa4eae069d8ee29f270fcc7fd14c46011699e607 100644 (file)
@@ -94,6 +94,7 @@ public:
                                   // smallest integer type with enough room.
 
   unsigned OpenCL            : 1; // OpenCL C99 language extensions.
+  unsigned CUDA              : 1; // CUDA C++ language extensions.
 
   unsigned AssumeSaneOperatorNew : 1; // Whether to add __attribute__((malloc))
                                       // to the declaration of C++'s new
@@ -157,7 +158,7 @@ public:
     RTTI = 1;
     LaxVectorConversions = 1;
     HeinousExtensions = 0;
-    AltiVec = OpenCL = StackProtector = 0;
+    AltiVec = OpenCL = CUDA = StackProtector = 0;
 
     SymbolVisibility = (unsigned) DefaultVisibility;