Parser crash

Amilcar do Carmo Lucas amilcar at ida.ing.tu-bs.de
Thu Apr 3 14:40:05 UTC 2003


No, sorry the patch didn't help.
It still crashes.


Caleb Tennis wrote:

>On Tuesday 01 April 2003 12:41 pm, Amilcar do Carmo Lucas wrote:
>  
>
>>Gideon CVS today crashes every time I save a .h file
>>    
>>
>
>I can't reproduce this, but does this patch solve the problem?
>
>diff -u -3 -p -r1.26 classstore.cpp
>--- classstore.cpp      20 Mar 2003 14:06:59 -0000      1.26
>+++ classstore.cpp      2 Apr 2003 17:19:55 -0000
>@@ -486,13 +486,20 @@ void ClassStore::removeWithReferences(co
> {
>     for (QMap<QString, ParsedScopeContainer*>::Iterator it = 
>m_allScopes.begin(); it != m_allScopes.end(); ++it)
>         removeWithReferences(fileName, *it);
>-    for (QMap<QString, ParsedClass*>::Iterator it = m_allClasses.begin(); it 
>!= m_allClasses.end(); ++it) {
>-        if ( (*it)->declaredInFile() == fileName )
>+
>+    QMap<QString, ParsedClass*>::Iterator it = m_allClasses.begin();
>+
>+    while(it != m_allClasses.end()) {
>+        if ( (*it)->declaredInFile() == fileName )
>             m_allClasses.remove( it );
>+        else it++;
>     }
>-    for (QMap<QString, ParsedClass*>::Iterator it = m_allStructs.begin(); it 
>!= m_allStructs.end(); ++it) {
>+
>+    it = m_allStructs.begin();
>+    while(it != m_allStructs.end()) {
>         if ( (*it)->declaredInFile() == fileName )
>             m_allStructs.remove( it );
>+        else it++;
>     }
>     removeWithReferences(fileName, m_globalScope);
> }
>
>
>_______________________________________________
>Kdevelop-devel mailing list
>Kdevelop-devel at barney.cs.uni-potsdam.de
>http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>  
>

-- 
Amilcar Lucas

---------------------------------------------------------------------------
             Institut fuer Datentechnik und Kommunikationsnetze
               Technische Universitaet Braunschweig, Germany      

Amilcar do Carmo Lucas                  Tel. : +49 531 391 3751
Raum 1315                               Fax  : +49 531 391 3750
Hans-Sommer Str. 66                     Email: amilcar at ida.ing.tu-bs.de
D-38106 Braunschweig
           http://www.ida.ing.tu-bs.de/people/amilcar/home.e.shtml
---------------------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20030403/61d1b665/attachment.html>


More information about the KDevelop-devel mailing list