[PATCH] D59223: Objective-C++11: Support static_assert() in @interface/@implementation ivar lists and method declarations
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 14 07:22:32 PDT 2019
aaron.ballman added inline comments.
================
Comment at: clang/test/Parser/objc-static-assert.m:29
+struct S {
+ @defs(A);
+};
----------------
Given that static assertions are member declarations of a struct, should this "replay" the static asserts from the interface (including failing the assertions)?
================
Comment at: clang/test/Parser/objc-static-assert.mm:4
+
+#if !__has_feature(objc_c_static_assert)
+#error failed
----------------
Why do we expect `objc_c_static_assert` to be a supported feature in ObjC++? I would have expected this as an extension, but not a feature.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59223/new/
https://reviews.llvm.org/D59223
More information about the cfe-commits
mailing list