CompilerPass 類別
C++ Build Insights SDK 與 Visual Studio 2017 和更新版本相容。 若要查看這些版本的文件,請將本文的 Visual Studio 版本選取器控制項設定為 Visual Studio 2017 或更新版本。 其位於此頁面目錄頂端。
CompilerPass
類別會與 MatchEvent、MatchEventInMemberFunction、MatchEventStack 和 MatchEventStackInMemberFunction 函式搭配使用。 使用它來比對 BACK_END_PASS 或 FRONT_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
類別還包含下列成員:
建構函式
列舉
PassCode
值 | Description |
---|---|
FRONT_END | 前端傳遞。 |
BACK_END | 後端傳遞。 |
函式
InputSourcePath
OutputObjectPath
PassCode
CompilerPass
CompilerPass(const RawEvent& event);
參數
event
BACK_END_PASS 或 FRONT_END_PASS 事件。
InputSourcePath
const wchar_t* InputSourcePath() const;
傳回值
這個編譯器所處理之輸入來源檔案的絕對路徑。
OutputObjectPath
const wchar_t* OutputObjectPath() const;
傳回值
這個編譯器所處理之輸出目的檔的絕對路徑。
PassCode
PassCode PassCode() const;
傳回值
指出這個 CompilerPass 物件所代表的編譯器傳遞之程式碼。
意見反映
https://aka.ms/ContentUserFeedback。
即將推出:我們會在 2024 年淘汰 GitHub 問題,並以全新的意見反應系統取代並作為內容意見反應的渠道。 如需更多資訊,請參閱:提交及檢視以下的意見反映: