title | description | ms.date | helpviewer_keywords | ||||||
---|---|---|---|---|---|---|---|---|---|
CompilerPass class |
The C++ Build Insights SDK CompilerPass class reference. |
02/12/2020 |
|
::: moniker range="<=msvc-140"
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.
::: moniker-end ::: moniker range=">=msvc-150"
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.
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;
};
Along with the inherited members from its Activity base class, the CompilerPass
class contains the following members:
Value | Description |
---|---|
FRONT_END | The front-end pass. |
BACK_END | The back-end pass. |
InputSourcePath
OutputObjectPath
PassCode
CompilerPass(const RawEvent& event);
event
A BACK_END_PASS or FRONT_END_PASS event.
const wchar_t* InputSourcePath() const;
The absolute path to the input source file processed by this compiler pass.
const wchar_t* OutputObjectPath() const;
The absolute path to the output object file produced by this compiler pass.
PassCode PassCode() const;
A code indicating which compiler pass is represented by this CompilerPass object.
::: moniker-end