TranslationUnitType class
The C++ Build Insights SDK is compatible with Visual Studio 2017 and later. To see the documentation for these versions, set the Visual Studio Version selector control for this article to Visual Studio 2017 or later. It's found at the top of the table of contents on this page.
The TranslationUnitType
class is used with the MatchEvent, MatchEventInMemberFunction, MatchEventStack, and MatchEventStackInMemberFunction functions. Use it to match a TRANSLATION_UNIT_TYPE event.
Syntax
class TranslationUnitType : public SimpleEvent
{
public:
enum class Type
{
MODULE = TRANSLATION_UNIT_TYPE_MODULE,
HEADER_UNIT = TRANSLATION_UNIT_TYPE_HEADER_UNIT,
PCH = TRANSLATION_UNIT_TYPE_PRECOMPILED_HEADER
};
TranslationUnitType(const RawEvent& event);
Type Type() const;
};
Members
Along with the inherited members from its SimpleEvent base class, the TranslationUnitType
class contains the following members:
Constructors
Functions
Type
Type Type() const;
Return Value
The type of the translation unit: either MODULE, HEADER_UNIT, or PCH.
TranslationUnitType
TranslationUnitType(const RawEvent& event);
Parameters
event
A TRANSLATION_UNIT_TYPE event.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for