Skip to content

Commit af41e99

Browse files
committed
add a comment to TypeSystemSwiftTypeRef::IsFunctionType
1 parent a63a74c commit af41e99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,8 @@ bool TypeSystemSwiftTypeRef::IsFunctionType(opaque_compiler_type_t type,
16801680
using namespace swift::Demangle;
16811681
Demangler dem;
16821682
NodePointer node = DemangleCanonicalType(dem, type);
1683+
// Note: There are a number of other candidates, and this list may need
1684+
// updating. Ex: `NoEscapeFunctionType`, `ThinFunctionType`, etc.
16831685
return node && (node->getKind() == Node::Kind::FunctionType ||
16841686
node->getKind() == Node::Kind::ImplFunctionType);
16851687
};

0 commit comments

Comments
 (0)