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

Move Definition Outside Class has wrong output with override macro

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes