Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 8.0.1
-
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).