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 | ||
| 11–19 | Those are already defined in Inputs/cuda.h in the test directory: #include "Inputs/cuda.h" | |
| 33–34 | 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 | ||
| 33–34 | Done. I presume the same applies to cudart_builtin, nv_weak, device_builtin_surface_type, and device_builtin_texture_type? | |
No need for {}