Author Topic: How to avoid function prototypes showing up in references search  (Read 2108 times)

A

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
Hello,
  I have a C++ project tagged and when I search for references to a function there is a dialog that pops up which allows one to choose which particular function signature to choose and this dialog also reports function prototypes. I would like to limit this to function implementations alone, is there a way I can do that.
Thanks!

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6939
  • Hero Points: 531
Re: How to avoid function prototypes showing up in references search
« Reply #1 on: October 05, 2020, 01:16:26 PM »
Tools>Options>Languages>Application Languages>C/C++>Context Tagging.
Set Prioritize navigation to:  Symbol definition (proc)

Dennis

  • Senior Community Member
  • Posts: 3992
  • Hero Points: 520
Re: How to avoid function prototypes showing up in references search
« Reply #2 on: October 06, 2020, 12:13:15 AM »
This issue, BTW, has been fixed in SlickEdit 2020 (version 25.0).

So long as you do not have the option to try to do function argument matching enabled, that is:
     Document > [language] Options... > Go to definition > Attempt to filter out non-matching function overloads

You should not get the prompt to select proc vs prototype unless:

    a) the function in question is a class constructor
        (so you are prompted whether you want references to the class in general,
         or specifically to look for references to the constructor)

    b) a virtual method with overloads at multiple levels in the inheritance chain

    c) a symbol which SlickEdit's Context Tagging could not identify precisely.