diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-11 08:24:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 08:24:43 +0000 |
commit | 51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb (patch) | |
tree | 2df4325c6d707f4c49bffcd1497b647fc9d49fab /gcc/gimple-warn-recursion.cc | |
parent | 77a49507446b67a6c207b4e4fec3639f536b9eca (diff) | |
parent | f02392c8b378a68fb2525098a41a90bd16faa7fd (diff) | |
download | gcc-51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb.zip gcc-51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb.tar.gz gcc-51c7cf4b974140d4ace6c3cb79de9a00bb2efcbb.tar.bz2 |
Merge #998
998: Parse macro expansion properly r=CohenArthur a=CohenArthur
This PR adds a base for trying to parse statements or items in macro invocations. We are now able to parse multiple items / expressions / statements properly, but do not lower them properly, which is the last remaining task in #943
New macro parsing logic:
```mermaid
flowchart TD;
has_semi -- Yes --> stmt;
has_semi -- No --> invocation;
invocation -- Is Parens --> expr;
invocation -- Is Square --> expr;
invocation -- Is Curly --> stmt;
```
Closes #943
Closes #959
Closes #952
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/gimple-warn-recursion.cc')
0 files changed, 0 insertions, 0 deletions