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

improve following aliased symbols

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 8.0.1
    • C/C++/Obj-C++ Support
    • None

    Description

      suppose this code:

      #define function aliased_function
      
      void function(void)
      {
      }
      
      int main()
      {
          function();
          return 0;
      }
      

      now place the cursor on the function() call in main(). pressing F2 will take you to the define. this is obviously correct ... and pretty much completely useless, except for the first time.

      to address this issue, i suggest to check whether the macro does resolve to a "proper" symbol. if so, pop up a small menu at the cursor where one can select between "Follow aliased symbol" and "Follow alias definition" (the former being the first and default choice; as a shortcut, pressing F2 while the menu is open would also follow the resolved symbol).

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            buddenha Oswald Buddenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes