#include "clang/APINotes/Types.h"
#include "llvm/Support/raw_ostream.h"
void clang::api_notes::ObjCMethodInfo::dump(llvm::raw_ostream &os) {
os << DesignatedInit << " " << FactoryAsInit << " " << Unavailable << " "
<< NullabilityAudited << " " << NumAdjustedNullable << " "
<< NullabilityPayload << " " << UnavailableMsg << "\n";
}
void clang::api_notes::ObjCContextInfo::dump(llvm::raw_ostream &os) {
os << HasDefaultNullability << " " << DefaultNullability << " "
<< HasDesignatedInits << "\n";
}
void clang::api_notes::ObjCMethodInfo::mergePropInfoIntoSetter(
const ObjCPropertyInfo &pInfo) {
if (auto pNullability = pInfo.getNullability()) {
if (!NullabilityAudited) {
addParamTypeInfo(0, *pNullability);
assert(NumAdjustedNullable == 2);
} else {
assert(getParamTypeInfo(0) == *pNullability);
}
}
}
void clang::api_notes::ObjCMethodInfo::mergePropInfoIntoGetter(
const ObjCPropertyInfo &pInfo) {
if (auto pNullability = pInfo.getNullability()) {
if (!NullabilityAudited) {
addReturnTypeInfo(*pNullability);
assert(NumAdjustedNullable == 1);
} else {
assert(getReturnTypeInfo() == *pNullability);
}
}
}