Merge branch 'main' into cdecl-global-function-checking

This commit is contained in:
Alexis Laferrière
2025-04-16 11:19:37 -07:00
committed by GitHub
342 changed files with 10898 additions and 3434 deletions

View File

@@ -8756,14 +8756,6 @@ void VarDecl::emitLetToVarNoteIfSimple(DeclContext *UseDC) const {
}
}
std::optional<ExecutionKind>
AbstractFunctionDecl::getExecutionBehavior() const {
auto *attr = getAttrs().getAttribute<ExecutionAttr>();
if (!attr)
return {};
return attr->getBehavior();
}
clang::PointerAuthQualifier VarDecl::getPointerAuthQualifier() const {
if (auto *clangDecl = getClangDecl()) {
if (auto *valueDecl = dyn_cast<clang::ValueDecl>(clangDecl)) {
@@ -8948,6 +8940,12 @@ void ParamDecl::setTypeRepr(TypeRepr *repr) {
continue;
}
if (auto *callerIsolated =
dyn_cast<CallerIsolatedTypeRepr>(unwrappedType)) {
setCallerIsolated(true);
unwrappedType = callerIsolated->getBase();
}
break;
}
}
@@ -11042,6 +11040,9 @@ AccessorDecl *AccessorDecl::createParsed(
if (subscriptParam->isSending())
param->setSending();
if (subscriptParam->isCallerIsolated())
param->setCallerIsolated();
newParams.push_back(param);
}