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

List:       kdevelop-bugs
Subject:    [Bug 295019] New: enumerators are not in the same namespace as class names
From:       <flo.ruijt () gmail ! com>
Date:       2012-02-28 19:25:53
Message-ID: bug-295019-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

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