swift-module-digester: diagnose value ownership changes for parameters.

This commit is contained in:
Xi Ge
2018-10-04 18:02:43 -07:00
parent 01c4c3c12b
commit a1e66a0515
9 changed files with 23 additions and 1 deletions

View File

@@ -312,6 +312,10 @@ bool SDKNodeType::hasTypeAttribute(TypeAttrKind DAKind) const {
TypeAttributes.end();
}
StringRef SDKNodeType::getParamValueOwnership() const {
return ParamValueOwnership.empty() ? "Default" : ParamValueOwnership;
}
StringRef SDKNodeType::getTypeRoleDescription() const {
assert(isTopLevelType());
auto P = cast<SDKNodeDecl>(getParent());