Skip to content

Commit b49a3e5

Browse files
author
Gabor Horvath
committed
[cxx-interop] Document Embedded Swift limitations in a comment
1 parent da61cd6 commit b49a3e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/PrintAsClang/PrintSwiftToClangCoreScaffold.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ void printPrimitiveGenericTypeTraits(raw_ostream &os, ASTContext &astContext,
187187
primTypesArray = primTypesArray.drop_back(2);
188188

189189
// We do not have metadata for primitive types in Embedded Swift.
190+
// As a result, the following features are not supported with primitive types in this mode:
191+
// - Dynamic casts
192+
// - Static self
193+
// - Generic requirement parameters
194+
// - Metadata source parameter
190195
bool embedded = astContext.LangOpts.hasFeature(Feature::Embedded);
191196

192197
for (Type type : primTypesArray) {

0 commit comments

Comments
 (0)