Skip to content

Conversation

@j-hui
Copy link
Contributor

@j-hui j-hui commented Oct 23, 2025

Checking this upon import was overlooking annotations that explicitly mark a type as safe (or unsafe). Instead, we consolidate this logic in the ClangDeclExplicitSafety request.

rdar://163196609

Checking this upon import was overlooking annotations that explicitly
mark a type as safe (or unsafe). Instead, we consolidate this logic in
the ClangDeclExplicitSafety request.

rdar://163196609
@j-hui
Copy link
Contributor Author

j-hui commented Oct 23, 2025

@swift-ci please test

break;
case clang::TemplateArgument::Pack:
for (auto pkArg : arg.getPackAsArray()) {
if (pkArg.getKind() == clang::TemplateArgument::Type &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can packs be nested?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, not as far as I'm aware.

@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

@swift-ci please test

@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

Note: tests failed because I forgor to account for cycles, e.g., this fun one from libcxx:

template <class _Tp>
class allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp> > { ... }

@j-hui j-hui force-pushed the template-arg-safety-in-req branch from 9520c14 to 929d0d8 Compare October 24, 2025 21:30
@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

@swift-ci please test

@j-hui
Copy link
Contributor Author

j-hui commented Oct 24, 2025

@swift-ci please test macos platform

@j-hui
Copy link
Contributor Author

j-hui commented Oct 26, 2025

@swift-ci please test macos platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants