Thanks to jhen for helping me figure this out.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Sema/SemaDeclAttr.cpp | ||
---|---|---|
364 ↗ | (On Diff #44695) | No need for {} |
test/SemaCUDA/bad-attributes.cu | ||
11–19 ↗ | (On Diff #44695) | Those are already defined in Inputs/cuda.h in the test directory: #include "Inputs/cuda.h" |
33–34 ↗ | (On Diff #44695) | Those are unsupported stubs that exist only to avoid warnings when we include CUDA headers. |
Comment Actions
Thank you for the review.
lib/Sema/SemaDeclAttr.cpp | ||
---|---|---|
364 ↗ | (On Diff #44695) | 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 ↗ | (On Diff #44695) | Done. I presume the same applies to cudart_builtin, nv_weak, device_builtin_surface_type, and device_builtin_texture_type? |