Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-6628

Parser: Strange behavior with enums

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 2.4.0
    • C/C++/Obj-C++ Support
    • None
    • Windows XP

    Description

      #define NOTHING(ARG)
      
      enum Foonum
      {
        A = 0,
        B = 1
        NOTHING(Foonum)
      };
      
      struct foo
      {
        int bar;
      };
      
      struct baz
      {
        foo Foo;
      };
      
      int main()
      {
        foo Foo;
        return Foo.bar;
      }

      All symbols are colored in purple, including Foo and bar. In my project (couldn't reproduce with a MWE), Follow Symbol on foo jumps to its appearance on another struct (like baz.Foo in the example).

      Attachments

        1. enum.png
          enum.png
          6 kB
        2. enums-2.6.png
          enums-2.6.png
          7 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kosjar Nikolai Kosjar
              orgads Orgad Shaneh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes