MForster marked an inline comment as done.
MForster added inline comments.

================
Comment at: clang/test/Sema/ns_error_enum.c:25
+
+const char *MyErrorDomain;
+typedef NS_ERROR_ENUM(unsigned char, MyErrorEnum, MyErrorDomain) {
----------------
gribozavr2 wrote:
> const char * => NSString * const? You'd need to define a fake NSString type, 
> but that should be rather easy:
> 
> ```
> @interface NSString
> @end
> ```
> const char * => NSString * const?

Done.

Turns out that this makes the test incompatible with C and C++. Some more 
research makes me believe that this feature is only supposed to be used from 
ObjC(++). I removed the C/C++ RUN lines from this test. I will also send a 
follow-up change to turn this into an error in those languages. But I want to 
make it a separate change because of the potential for breakage in existing 
code.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84005/new/

https://reviews.llvm.org/D84005



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to