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

Incorrect output parameter highlighting

    XMLWordPrintable

Details

    • Linux/X11
    • 53d6aea404 (qt-creator/qt-creator/7.0) 53d6aea404 (qt-creator/qt-creator/master) 53d6aea404 (qt-creator/qt-creator/qds-3.3) 53d6aea404 (qt-creator/tqtc-qt-creator/7.0)

    Description

      In the following code sample, lambda and vec in foo are highlighted as output parameters:

      #include <vector>
      
      class my_class_base
      {
      protected:
      	std::vector< unsigned char > vec;
      };
      
      template< typename T >
      class my_class :
      	public my_class_base
      {
      	void foo()
      	{
      		auto lambda = [&]()
      		{
      		};
      
      		lambda();
      
      		vec.clear();
      	}
      };
      

      This is with clangd enabled.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes