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

List:       kdevelop-bugs
Subject:    [Bug 201749] New: C++ Parser fails with typedefs inside classes
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2009-07-28 9:30:45
Message-ID: bug-201749-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

           Summary: C++ Parser fails with typedefs inside classes
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: mcguire@kde.org


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

KDevelop fails to parse the following code:

class A
{
  public:
    void bar();
  private:
    int baz;
};

class B
{
  public:

    typedef A Foo;
};

void B::Foo::bar()
{
  baz = 12;
}

Here, in the line "baz = 12", baz is underlined in yellow, even though it is a
member variable of the A class (for which B::Foo is a typedef).

This screws up KMail's configuredialog.cpp quite much.

-- 
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