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

Class view shows forward declaration of function with default arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 4.8.1
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11

      code:

      #include <iostream>
      
      void func(int arg = 0);
      
      int main() {
           func(1);
      }
      
      void func(int arg) {
           std::cout << arg << '\n';
      }
      

       

      class view:

      func (int = 0)
      func (int)
      main ()

       

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

            kosjar Nikolai Kosjar
            tguen tguen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes