os << "Parameter '";
PVD->getNameForDiagnostic(os, PVD->getASTContext().getPrintingPolicy(),
/*Qualified=*/false);
- os << "' is marked as consuming, but the function does not consume "
+ os << "' is marked as consuming, but the function did not consume "
<< "the reference\n";
}
}
escape(obj);
return true;
}
- return false; // expected-note{{Parameter 'obj' is marked as consuming, but the function does not consume the reference}}
+ return false; // expected-note{{Parameter 'obj' is marked as consuming, but the function did not consume the reference}}
}
bool os_consume_violation(OS_CONSUME OSObject *obj) {
escape(obj);
return true;
}
- return false; // expected-note{{Parameter 'obj' is marked as consuming, but the function does not consume the reference}}
+ return false; // expected-note{{Parameter 'obj' is marked as consuming, but the function did not consume the reference}}
}
void os_consume_ok(OS_CONSUME OSObject *obj) {