CompilerPass 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 CompilerPass
class is used with the MatchEvent, MatchEventInMemberFunction, MatchEventStack, and MatchEventStackInMemberFunction functions. Use it to match a BACK_END_PASS or FRONT_END_PASS event.
Syntax
class CompilerPass : public Activity
{
public:
enum class PassCode
{
FRONT_END,
BACK_END
};
CompilerPass(const RawEvent& event);
PassCode PassCode() const;
const wchar_t* InputSourcePath() const;
const wchar_t* OutputObjectPath() const;
};
Members
Along with the inherited members from its Activity base class, the CompilerPass
class contains the following members:
Constructors
Enums
PassCode
Value | Description |
---|---|
FRONT_END | The front-end pass. |
BACK_END | The back-end pass. |
Functions
InputSourcePath
OutputObjectPath
PassCode
CompilerPass
CompilerPass(const RawEvent& event);
Parameters
event
A BACK_END_PASS or FRONT_END_PASS event.
InputSourcePath
const wchar_t* InputSourcePath() const;
Return Value
The absolute path to the input source file processed by this compiler pass.
OutputObjectPath
const wchar_t* OutputObjectPath() const;
Return Value
The absolute path to the output object file produced by this compiler pass.
PassCode
PassCode PassCode() const;
Return Value
A code indicating which compiler pass is represented by this CompilerPass object.