Tell the driver that CUDA is a C++-like language, so that we get C++
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 20 May 2012 23:28:36 +0000 (23:28 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 20 May 2012 23:28:36 +0000 (23:28 +0000)
header searches with CUDA.

llvm-svn: 157172

clang/lib/Driver/Types.cpp

index 50742fe..533e780 100644 (file)
@@ -129,6 +129,7 @@ bool types::isCXX(ID Id) {
   case TY_ObjCXX: case TY_PP_ObjCXX:
   case TY_CXXHeader: case TY_PP_CXXHeader:
   case TY_ObjCXXHeader: case TY_PP_ObjCXXHeader:
+  case TY_CUDA:
     return true;
   }
 }