From 7c257bb57562b015b094f109851d914ef232ae2a Mon Sep 17 00:00:00 2001 From: "hanson.wang" Date: Tue, 16 Sep 2014 13:11:44 -0700 Subject: 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. --- src/scanner.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) } "(" { lastSkipRoundContext = FindMembers; - roundCount=1; + roundCount=0; BEGIN(SkipRound); } {BN}+ { lineCount(); } -- cgit v0.12