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

List:       kdevelop-bugs
Subject:    [Bug 100730] Support for Qt4 keyword: foreach
From:       Nico Kruber <Nico.Laus.2001 () gmx ! de>
Date:       2007-01-29 16:59:50
Message-ID: 20070129165950.6143.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=100730         




------- Additional Comments From Nico.Laus.2001 gmx de  2007-01-29 17:59 -------
somehow this does not seem totally fixed right now (KDevelop 3.4.0):

in the following example every "{" after the foreach is marked as an error except for \
the last one

strangely enough this does not happen with every file. I've got files where none of \
the foreach's is marked

--------------------------------------------------------
#include <QApplication>
#include <QModelIndex>
#include <QModelIndexList>

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);

    QModelIndexList indexs;
    foreach( QModelIndex index, indexes )
    {
        ;
    }
    foreach( QModelIndex index, indexes )
    {
        ;
    }
    foreach( QModelIndex index, indexes )
    {
        ;
    }
    foreach( QModelIndex index, indexes )
    {
        ;
    }
    foreach( QModelIndex index, indexes )
    {
        ;
    }
    foreach( QModelIndex index, indexes )
    {
        ;
    }
    
    return app.exec();
}


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

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