inclyc added inline comments.

================
Comment at: clang/test/Parser/while-loop-outside-function.c:3-4
+
+while(1) {}; // expected-error {{expected identifier or '('}} \
+             // expected-note {{while loop outside of functions}}
+
----------------
mizvekov wrote:
> How about just making the error be the same thing the note would say?
> 
> 
OK, so just create a new error directly, and then report the error when 
encountering the `while` token?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129573

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

Reply via email to