[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/sdk/kdevelop/languages/cpp/parser
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2010-03-29 0:19:49
Message-ID: 20100329001949.E36CCAC883 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1108468 by zwabel:

Don't choke on "template" tokens.
BUG: 209375
Thanks to Benjamin Schindler for the patch.


 M  +2 -6      parser.cpp  


--- trunk/extragear/sdk/kdevelop/languages/cpp/parser/parser.cpp #1108467:1108468
@@ -3803,12 +3803,8 @@
         uint op = session->token_stream->cursor();
         advance();
 
-//         uint templ = 0;
-//         if (session->token_stream->lookAhead() == Token_template)
-//           {
-//             templ = session->token_stream->cursor();
-//             advance();
-//           }
+        if (session->token_stream->lookAhead() == Token_template)
+            advance();
 
         NameAST *name = 0;
         if (!parseName(name, EventuallyAcceptTemplate))
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic