From kdevelop-bugs Tue Feb 28 19:25:53 2012 From: Date: Tue, 28 Feb 2012 19:25:53 +0000 To: kdevelop-bugs Subject: [Bug 295019] New: enumerators are not in the same namespace as class names Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=133045726506890 https://bugs.kde.org/show_bug.cgi?id=295019 Summary: enumerators are not in the same namespace as class names Product: kdevelop Version: git master Platform: Compiled Sources OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Language Support: CPP AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: flo.ruijt@gmail.com Version: git master (using KDE 4.7.4) OS: Linux in: class FieldDesignator{}; class Designator { /// @brief The kind of designator this describes. enum { FieldDesignator, ArrayDesignator, ArrayRangeDesignator } Kind; union { /// A field designator, e.g., ".x". struct FieldDesignator Field; // <-- /// An array or GNU array-range designator, e.g., "[9]" or "[10..15]". struct ArrayOrRangeDesignator ArrayOrRange; }; } at the arrow above, the code is highlighted as if FieldDesignator is an enumerator whereas it's used as a class name. The code is an excerpt from the clang headers. Reproducible: Didn't try Steps to Reproduce: paste code in editer Actual Results: Code highlighted as if classnames can be hidden by enumerators Expected Results: Code highlighted as if classnames live in different namespace from enumerators most likely a bug in either the parser or the usebuilder -- 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