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

Incorrect output parameter highlighting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 7.0.1
    • Qt Creator 7.0.0
    • C/C++/Obj-C++ Support
    • None
    • Kubuntu 21.10 x86-64
    • Linux/X11
    • 25144c0afe (qt-creator/qt-creator/7.0) 25144c0afe (qt-creator/qt-creator/master) 25144c0afe (qt-creator/qt-creator/qds-3.3) 25144c0afe (qt-creator/tqtc-qt-creator/7.0)

    Description

      In the following example, with clangd enabled, vec and ptr inside foo are incorrectly highlighted as output parameters:

      #include <vector>
      
      template< typename T >
      class my_class
      {
      private:
      	struct my_int
      	{
      		int n;
      	};
      
      	std::vector< my_int > vec;
      
      public:
      	void foo()
      	{
      		auto it = vec.begin(), end = vec.end();
      
      		T* ptr = nullptr;
      		ptr->bar();
      	}
      };
      

      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