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

Move Definition Outside Class has wrong output with override macro

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 3.1.1
    • C/C++/Obj-C++ Support

      #define OVERRIDE override
      
      struct Base { virtual int func() = 0; };
      
      struct Derived : Base
      {
          int func() OVERRIDE
          {
              return 42;
          }
      };

      Results in:

      struct Derived : Base
      {
          int func() OVERRIDE
          {;
      };
      
      
      int Derived::func()return 42;
      }

      The same is true if I replace override with const.

        For Gerrit Dashboard: QTCREATORBUG-12314
        # Subject Branch Project Status CR V

            kandeler Christian Kandeler
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes