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

List:       kdevelop-bugs
Subject:    [Bug 197859] New: preprocessor #if comparison isn't parsed
From:       Arno Rehn <kde () arnorehn ! de>
Date:       2009-06-25 16:44:36
Message-ID: bug-197859-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=197859

           Summary: preprocessor #if comparison isn't parsed
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: kde@arnorehn.de


Version:            (using Devel)
Compiler:          gcc 4.4.0 
OS:                Linux
Installed from:    Compiled sources

The preprocessor of KDevelop doesn't seem to understand stuff like
#if foo >= 5
#endif

For example, in QtCore/qdatastream.h it says
#if QT_VERSION >= 0x040600
#error Add the datastream version for this Qt version
        , Qt_4_6 = Qt_4_5
#endif

If you invoke the auto-completion on QDataStream:: it still shows Qt_4_6.
Also, if you do something like

#if foo >= 2
    bool b;
#endif

'b' gets still included in the auto-completion list, even though foo is not
defined. If you say #if foo instead, bool b; isn't parsed (as expected).

Hence it seems like the preprocessor can't handle comparisons.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs

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

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