分享方式:


CompilerPass 類別

C++ Build Insights SDK 與 Visual Studio 2017 和更新版本相容。 若要查看這些版本的文件,請將本文的 Visual Studio 版本選取器控制項設定為 Visual Studio 2017 或更新版本。 其位於此頁面目錄頂端。

CompilerPass 類別會與 MatchEventMatchEventInMemberFunctionMatchEventStackMatchEventStackInMemberFunction 函式搭配使用。 使用它來比對 BACK_END_PASSFRONT_END_PASS 事件。

語法

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;
};

成員

除了從 Activity 基底類別繼承的成員之外,該 CompilerPass 類別還包含下列成員:

建構函式

CompilerPass

列舉

PassCode

Description
FRONT_END 前端傳遞。
BACK_END 後端傳遞。

函式

InputSourcePath
OutputObjectPath
PassCode

CompilerPass

CompilerPass(const RawEvent& event);

參數

event
BACK_END_PASSFRONT_END_PASS 事件。

InputSourcePath

const wchar_t* InputSourcePath() const;

傳回值

這個編譯器所處理之輸入來源檔案的絕對路徑。

OutputObjectPath

const wchar_t* OutputObjectPath() const;

傳回值

這個編譯器所處理之輸出目的檔的絕對路徑。

PassCode

PassCode PassCode() const;

傳回值

指出這個 CompilerPass 物件所代表的編譯器傳遞之程式碼。