MetanoKid / cpp-build-analyzer

Analyzes MSVC C++ compilations with C++ Build Insights SDK
GNU General Public License v3.0
80 stars 2 forks source link

Simplify template instantiation name discovery #20

Closed MetanoKid closed 4 years ago

MetanoKid commented 4 years ago

As stated in the official docs, SymbolName:

_Occurs at the end of the front-end pass: once for every type involved in template instantiations. The key is a numerical identifier for the type, while the name is its text representation. Type keys are unique within the trace being analyzed. However, different keys coming from different compiler front-end passes may point to the same type. Comparing types between different compiler front-end passes requires using their names. SYMBOLNAME events are emitted at the end of a compiler front-end pass, after all template instantiations have taken place.