Patch #2791 2009-07-22 07:26

blueshake

fix the unnamed struct parse problem
Download
2791-fix_the_unname.patch (874 bytes)
Category
Plugin::Bugfix
Status
Accepted
Close date
2009-08-24 07:32
Assigned to
mortenmacfly
Index: parserthread.cpp
===================================================================
--- parserthread.cpp    (revision 5696)
+++ parserthread.cpp    (working copy)
@@ -1228,7 +1228,7 @@
             {
                 static size_t num = 0;
                 wxString unnamedTmp;
-                unnamedTmp.Printf(_T("Unnamed-%s-%d"),
+                unnamedTmp.Printf(_T("Unnamed%s%d"),
                                   ct == ctClass ? _T("Class") :
                                   ct == ctUnion ? _T("Union") :
                                                   _T("Struct"), num++);
@@ -1460,7 +1472,7 @@
         if (m_ParsingTypedef)
         {
             static size_t num = 0;
-            token.Printf(_T("Unnamed-Enum-%d"), num++);
+            token.Printf(_T("UnnamedEnum%d"), num++);
             m_LastUnnamedTokenName = token;
         }
         else