handle even more include in enum cases
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 13 Jun 2022 18:00:47 +0000 (19:00 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 13 Jun 2022 18:00:47 +0000 (19:00 +0100)
commit2a45344a028c2ef98e5a39fcc5e2309795ccbac9
treebb21252c497c61caa1db01e8a9fc9c185a7113c1
parent0f0a96dd4b73d5dd00a65d7888190d94f1ec5571
handle even more include in enum cases

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=87973325f1b99f2b
Last-Update: 2022-04-07

The solution in d3ed7dac8aa2f4ede0c409254b9dd44842086be0 was needlessly
complicated, and broke a valid use case.
The issue of no identifier being available to parse after the include
has been processed can instead be solved by moving the test for the
closing brace after the include processing.

Gbp-Pq: Name moc_handle_include.diff
src/tools/moc/moc.cpp
tests/auto/tools/moc/enum_with_include.h