[cxx-interop] Emit C++ declarations only when '-clang-header-expose-public-decl' is enabled

This fix also ensures that we only emit C++ functions for now
This commit is contained in:
Alex Lorenz
2022-03-20 20:22:02 -07:00
parent 2e3aa87737
commit 80bc75ab9b
14 changed files with 43 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -typecheck -enable-cxx-interop -emit-clang-header-path %t/empty.h
// RUN: %target-swift-frontend %s -typecheck -clang-header-expose-public-decls -emit-clang-header-path %t/empty.h
// RUN: %FileCheck %s < %t/empty.h
// CHECK-LABEL: #ifndef EMPTY_SWIFT_H