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

Clang: Output argument "highlighting" is unhelpful

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.4.0-beta1
    • C/C++/Obj-C++ Support
    • None

      In the following code the 'm_klass' argument in the doSomething call is marked as 'out argument' (i.e. in italics). It is not an 'out argument', it's not even an argument to the doSomething function.

      struct Foo {};
      
      void doSomething(Foo *f)
      {
          (void)f;
      }
      
      struct Klass
      {
          Foo *foo() const { return new Foo; }
      };
      
      struct Other
      {
          void stuff()
          {
              doSomething(m_klass.foo());
          }
      
          const Klass m_klass;
      };
      

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

            bubke Marco Bubke
            hjk hjk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes