diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-03 07:51:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-05-03 07:51:19 (GMT) |
commit | 7b2d77abb73288bdd48ca04720fd6779e0bf94c2 (patch) | |
tree | 1cd9f74dda74f7c3140e7452dd8d3dbc97f02840 | |
parent | 530647f76a7660a406d102269dc041b00b0e3d4e (diff) | |
download | Doxygen-7b2d77abb73288bdd48ca04720fd6779e0bf94c2.zip Doxygen-7b2d77abb73288bdd48ca04720fd6779e0bf94c2.tar.gz Doxygen-7b2d77abb73288bdd48ca04720fd6779e0bf94c2.tar.bz2 |
Bug 748208 - Bug #313527 regression - Enum in bitfield is not parsed properly.
-rw-r--r-- | src/scanner.l | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l index 9529c34..b3ae01a 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -5634,7 +5634,13 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) BEGIN( ClassVar ); } <ClassVar>":" { - if (current->section==Entry::ENUM_SEC) // enum E:2, see bug 313527, + if (current->section==Entry::VARIABLE_SEC) // enum A B:2, see bug 748208 + { + current->bitfields+=":"; + current->args.resize(0); + BEGIN(BitFields); + } + else if (current->section==Entry::ENUM_SEC) // enum E:2, see bug 313527, // or C++11 style enum: 'E : unsigned int {...}' { current->args.resize(0); |