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.
![](/~/media/wholetomato/kb/extend-creationconstruction-hits-to-template-functions/findrefsfunctiontemplatemenu.ashx?la=en&hash=B38426B55639998A08869A43431FA681C3D1C930)
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:
![](/~/media/wholetomato/kb/extend-creationconstruction-hits-to-template-functions/findrefsfunctiontemplateexample.ashx?la=en&hash=B704777BCDE12987159B5F9713ECCA7A26E7AAA1)
To make the function template's creations of AStrategyGameState to appear in results of Find References from AStrategyGameState, specifiy GetGameState in the registry.
![](/~/media/wholetomato/kb/extend-creationconstruction-hits-to-template-functions/findrefsfunctiontemplateregistry.ashx?la=en&hash=E92CA040E1CE5C868C869062D8C6E6AC94FF956C)