Skip to content

Commit afe1e61

Browse files
committed
Move doc comment to header file
1 parent 55a153a commit afe1e61

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/AST/ClangTypeConverter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -905,9 +905,6 @@ Decl *ClangTypeConverter::getSwiftDeclForExportedClangDecl(
905905
}
906906

907907
clang::QualType ClangTypeConverter::convertTemplateArgument(Type type) {
908-
// C++ function templates can only be instantiated with Clang types and
909-
// a handful of Swift builtin types. These are enumerated here rather than
910-
// delegated to ClangTypeConverter::convert() (which is more general).
911908
auto withCache = [&](auto lookup) {
912909
auto [it, inserted] = Cache.try_emplace(type, clang::QualType{});
913910
if (!inserted)

lib/AST/ClangTypeConverter.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ class ClangTypeConverter :
116116
clang::QualType convertMemberType(NominalTypeDecl *DC,
117117
StringRef memberName);
118118

119+
/// Convert Swift types that are used as C++ function template arguments.
120+
///
121+
/// C++ function templates can only be instantiated with types originally
122+
/// imported from Clang, and a handful of builtin Swift types (e.g., integers
123+
/// and floats).
119124
clang::QualType convertTemplateArgument(Type type);
120125

121126
clang::QualType convertClangDecl(Type type, const clang::Decl *decl);

0 commit comments

Comments
 (0)