Wiki

Case Status
Log In

Wiki

 
Whole Tomato Software - Home
  • RSS Feed

Extend creation/construction hits to template functions

Find References from a class or struct generates results that include creations/constructions of the class or struct. You can filter the command's results, typically using the D, R, and S toggles, so the results include only the creations/creations.

By default, Find References finds classes and structs created on the stack, i.e. local variables or arguments, and created on the heap via keyword "new". Results also include creations via function templates make_shared() and make_unique(). You can extend the results to include creations by other function templates by specifying the template names in the registry.

Add the names of the function templates, separated by semicolons, to the following:

HKEY_CURRENT_USER \ Software \ Whole Tomato \ Visual Assist X \ <IDE spec> \ CreationTemplateFunctionNames = ""

For example, assume function template GetGameState() creates and returns an AStrategyGameState class:

To make the function template's creations of AStrategyGameState to appear in results of Find References from AStrategyGameState, specifiy GetGameState in the registry.

Tags: