Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/PrintAsClang/DeclAndTypePrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,6 @@ class DeclAndTypePrinter::Implementation
bool isClassMethod,
bool isNSUIntegerSubscript = false,
const SubscriptDecl *SD = nullptr) {
printDocumentationComment(AFD);

Optional<ForeignAsyncConvention> asyncConvention =
AFD->getForeignAsyncConvention();
Optional<ForeignErrorConvention> errorConvention =
Expand All @@ -930,6 +928,7 @@ class DeclAndTypePrinter::Implementation
return;
owningPrinter.prologueOS << cFuncPrologueOS.str();

printDocumentationComment(AFD);
DeclAndTypeClangFunctionPrinter declPrinter(
os, owningPrinter.prologueOS, owningPrinter.typeMapping,
owningPrinter.interopContext, owningPrinter);
Expand Down Expand Up @@ -978,6 +977,7 @@ class DeclAndTypePrinter::Implementation
// FIXME: availability
return;
}
printDocumentationComment(AFD);

if (isClassMethod)
os << "+ (";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// RUN: cat %t/stdlib.h %t/stdlib2.h > %t/two_includes.h

// RUN: %check-generic-interop-cxx-header-in-clang(%t/two_includes.h -Wno-unused-private-field -Wno-unused-function -Wno-shadow -Wno-documentation)
// RUN: %check-generic-interop-cxx-header-in-clang(%t/two_includes.h -Wno-unused-private-field -Wno-unused-function -Wno-shadow)

@_expose(Cxx)
public func test() -> String {
Expand Down