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

Please dont skip typedefs when "Follow Symbol under cursor"

    XMLWordPrintable

Details

    Description

      Or, atleast dont do it when templates are involved.

      For example i have things like this in my code:

          Api::GetChatUsers* get_users = new Api::GetChatUsers(connection_);
      

      When i select GetChatUsers and press F2, i end up here:

          template <class RESPONSE, class REQUEST> class RpcTemplate
              : public RpcResponse<RESPONSE>
      

      Which tells me nothing about the actual type GetChatUsers, because it is
      defined like this elsewhere:

          typedef RpcTemplate<ResponseBoolean, RequestGetChatUsers>
                  GetChatUsers;
      

      The same problem also happens if you typedef QHash<something, something>
      and then use that typedef.

      I think it makes sense to typedef complex template usages, and Qt
      creator should take you to where the typedef is defined instead of where
      the template is defined.

      Attachments

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

        Activity

          People

            raggi Roberto Raggi
            artokarp Arto Karppinen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes