Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 6.0.0, Qt Creator 6.0.1, Qt Creator 6.0.2, Qt Creator 7.0.0, Qt Creator 7.0.1, Qt Creator 7.0.2
-
None
-
-
c6c919e671 (qt-creator/qt-creator/master) c6c919e671 (qt-creator/qt-creator/8.0)
Description
If Tools/Options.../C++/Clangd option is On we have next trouble:
For functions which return type is: either reference, rvalue reference or pointer, — it's declarations does not correctly appears in the top and right side editor's panes! (see attached screenshots)
To avoid this problem I use C++ keyword "using" to define type alias:
template<typename T> using Pointer = T *;
template<typename T> using Reference = T&;
After that I have correct function outlines! (see attached screenshots)