summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorhanson.wang <hanson.wng@gmail.com>2014-09-16 20:11:44 (GMT)
committerhanson.wang <hanson.wng@gmail.com>2014-09-16 20:11:44 (GMT)
commit7c257bb57562b015b094f109851d914ef232ae2a (patch)
treeaa0a8e9aab1d16ca830c69e001fd2e5a43d3c2ba /src/scanner.l
parent2eece646faff22eeb256cd67b9af424401be2e41 (diff)
downloadDoxygen-7c257bb57562b015b094f109851d914ef232ae2a.zip
Doxygen-7c257bb57562b015b094f109851d914ef232ae2a.tar.gz
Doxygen-7c257bb57562b015b094f109851d914ef232ae2a.tar.bz2
Fix bug with C++11 static_assert
When processing a C++11 static_assert, we wish to skip the arguments. However, the `roundCount` is set to 1 despite the fact that the `SkipRound` routine will increment `roundCount` when it's entered. This causes the rest of the class to be skipped entirely.
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index f70d7d9..716dc6a 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -2444,7 +2444,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
<StaticAssert>"(" {
lastSkipRoundContext = FindMembers;
- roundCount=1;
+ roundCount=0;
BEGIN(SkipRound);
}
<StaticAssert>{BN}+ { lineCount(); }