diff options
author | hanson.wang <hanson.wng@gmail.com> | 2014-09-16 20:11:44 (GMT) |
---|---|---|
committer | hanson.wang <hanson.wng@gmail.com> | 2014-09-16 20:11:44 (GMT) |
commit | 7c257bb57562b015b094f109851d914ef232ae2a (patch) | |
tree | aa0a8e9aab1d16ca830c69e001fd2e5a43d3c2ba /src/scanner.l | |
parent | 2eece646faff22eeb256cd67b9af424401be2e41 (diff) | |
download | Doxygen-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.l | 2 |
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(); } |