Thanks to jhen for helping me figure this out.
Details
Diff Detail
Event Timeline
lib/Sema/SemaDeclAttr.cpp | ||
---|---|---|
364 | No need for {} | |
test/SemaCUDA/bad-attributes.cu | ||
12–20 | Those are already defined in Inputs/cuda.h in the test directory: #include "Inputs/cuda.h" | |
34–35 | Those are unsupported stubs that exist only to avoid warnings when we include CUDA headers. |
Thank you for the review.
lib/Sema/SemaDeclAttr.cpp | ||
---|---|---|
364 | For once this was intentional; this if body is multiline. See also handleGlobalAttr below. I'm happy to do whatever the style is, but I really hope it doesn't prescribe no braces here. | |
test/SemaCUDA/bad-attributes.cu | ||
34–35 | Done. I presume the same applies to cudart_builtin, nv_weak, device_builtin_surface_type, and device_builtin_texture_type? |
No need for {}