ABI/API checker: include SDK version number when generating diagnostic baselines

This commit is contained in:
Xi Ge
2019-09-10 17:00:39 -07:00
parent 9748a5adfd
commit a7e8620582
3 changed files with 12 additions and 3 deletions

View File

@@ -395,7 +395,8 @@ SDKNode *SDKNodeRoot::getInstance(SDKContext &Ctx) {
SDKNodeInitInfo Info(Ctx);
Info.Name = Ctx.buffer("TopLevel");
Info.PrintedName = Ctx.buffer("TopLevel");
Info.ToolArgs = Ctx.getOpts().ToolArgs;
llvm::transform(Ctx.getOpts().ToolArgs, std::back_inserter(Info.ToolArgs),
[&](std::string s) { return Ctx.buffer(s); });
Info.JsonFormatVer = DIGESTER_JSON_VERSION;
return Info.createSDKNode(SDKNodeKind::Root);
}