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

Parser: Strange behavior with enums

XMLWordPrintable

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

      #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).

        1. enums-2.6.png
          enums-2.6.png
          7 kB
        2. enum.png
          enum.png
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes