summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-05-03 07:51:19 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-05-03 07:51:19 (GMT)
commit7b2d77abb73288bdd48ca04720fd6779e0bf94c2 (patch)
tree1cd9f74dda74f7c3140e7452dd8d3dbc97f02840
parent530647f76a7660a406d102269dc041b00b0e3d4e (diff)
downloadDoxygen-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.l8
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);