diff options
author | inclyc <me@inclyc.cn> | 2022-07-13 00:12:12 +0800 |
---|---|---|
committer | inclyc <me@inclyc.cn> | 2022-07-25 11:48:24 +0800 |
commit | edaae251cca07c34c55905c424a8f677623d0bd0 (patch) | |
tree | 8706fecbbf9d779c185b876d0d9d0863b173087d /llvm/lib/CodeGen/ProcessImplicitDefs.cpp | |
parent | 1ef32e78284bc758112632e9e190b6683ea5b95b (diff) | |
download | llvm-edaae251cca07c34c55905c424a8f677623d0bd0.zip llvm-edaae251cca07c34c55905c424a8f677623d0bd0.tar.gz llvm-edaae251cca07c34c55905c424a8f677623d0bd0.tar.bz2 |
[clang] better error message for while loops outside of control flow
report an error when encountering 'while' token parsing declarator
```
clang/test/Parser/while-loop-outside-function.c:3:1: error: while loop outside of a function
while // expected-error {{while loop outside of a function}}
^
clang/test/Parser/while-loop-outside-function.c:7:1: error: while loop outside of a function
while // expected-error {{while loop outside of a function}}
^
```
Fixes: https://github.com/llvm/llvm-project/issues/34462
Differential Revision: https://reviews.llvm.org/D129573
Diffstat (limited to 'llvm/lib/CodeGen/ProcessImplicitDefs.cpp')
0 files changed, 0 insertions, 0 deletions