How to check which parts of the template are created?

I have a huge template file, and only a few functions are used, and I want to highlight this part for testing and comment on the other half. How can I find a better way to do this?

How to do this on a Windows system, and the template file is .hxx?

+5
source share
2 answers

I like the answer of Muhammad. Unfortunately ... he deleted it, but basically - used a tool like nm - I don’t know the Windows equivalent, but one thing is certain - to request objects for moments. Although your templates may be in .hxx, you can only meaningfully talk about a subset of the methods created using some client code. You may need to do this analysis with disabling inlining to ensure that function bodies are actually created in tangible form in object files.

, - , , , , . (, GCC g++ -ftest-coverage) (, purecov) .

+1

, , , ?

, Visual Studio, - : Ctrl + A, Ctrl + K + C. , Ctrl + K + U.

0

All Articles