[PATCH] D129573: [Clang] add a diagnostic note 'while loop outside functions' at global scope
Matheus Izvekov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 17 08:42:06 PDT 2022
mizvekov 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}}
+
----------------
How about just making the error be the same thing the note would say?
================
Comment at: clang/test/Parser/while-loop-outside-function.cpp:20
+};
\ No newline at end of file
----------------
Missing newline
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129573/new/
https://reviews.llvm.org/D129573
More information about the cfe-commits
mailing list