]> granicus.if.org Git - clang/commit
[CUDA] Report an error if code tries to mix incompatible CUDA attributes.
authorJustin Lebar <jlebar@google.com>
Wed, 13 Jan 2016 01:07:35 +0000 (01:07 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 13 Jan 2016 01:07:35 +0000 (01:07 +0000)
commita9b21a2f1a6122a82dfff6ffe9f21927d81fa22d
treef420b1910f08be52ebe3bbbf364cfa74daa7be49
parent25b8a8541485354b4aa015776c2735db5f17d667
[CUDA] Report an error if code tries to mix incompatible CUDA attributes.

Summary: Thanks to jhen for helping me figure this out.

Reviewers: tra, echristo

Subscribers: jhen

Differential Revision: http://reviews.llvm.org/D16129

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257554 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/SemaCUDA/Inputs/cuda.h
test/SemaCUDA/attributes-on-non-cuda.cu [moved from test/SemaCUDA/attributes.cu with 93% similarity]
test/SemaCUDA/bad-attributes.cu [new file with mode: 0644]