From 7e7c944628ca1fdce454e28df8a3439dcb061f46 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Sat, 4 Jul 2009 22:35:56 +0200
Subject: [PATCH] Stop at class or elaborated class specifiers when recovering
 declarations.

---
 src/shared/cplusplus/Parser.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp
index e94a9ca5d92..96e7f86cc20 100644
--- a/src/shared/cplusplus/Parser.cpp
+++ b/src/shared/cplusplus/Parser.cpp
@@ -140,6 +140,10 @@ bool Parser::skipUntilDeclaration()
             case T_PUBLIC:
             case T_PROTECTED:
             case T_PRIVATE:
+            case T_CLASS:
+            case T_STRUCT:
+            case T_UNION:
+            case T_TYPENAME:
                 return true;
 
             default:
-- 
GitLab