Files
swift-mirror/stdlib/public/Cxx/libstdcxx/libstdcxx.modulemap
Henrik G. Olsson 6a9ac22cd2 Merge pull request #84507 from hnrklssn/swiftify-import-as-method
[Swiftify] Add support for free functions imported as instance methods

(cherry picked from commit ed4f058c01)
2025-10-07 20:12:44 -07:00

94 lines
2.1 KiB
Plaintext

//===--- libstdcxx.modulemap ----------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// In order to use a C++ stdlib from Swift, the stdlib needs to have a Clang
// module map. Currently libstdc++ does not have a module map. To work around
// this, Swift provides its own module map for libstdc++.
//
//===----------------------------------------------------------------------===//
module std {
header "libstdcxx.h"
header "algorithm"
header "bitset"
header "complex"
header "deque"
header "exception"
header "fstream"
header "functional"
header "iomanip"
header "ios"
header "iosfwd"
header "iostream"
header "istream"
header "iterator"
header "limits"
header "list"
header "locale"
header "map"
header "memory"
header "new"
header "numeric"
header "ostream"
header "queue"
header "set"
header "span"
header "sstream"
header "stack"
header "stdexcept"
header "streambuf"
header "string"
header "utility"
header "typeinfo"
header "valarray"
header "vector"
header "array"
header "atomic"
header "chrono"
header "condition_variable"
header "forward_list"
header "future"
header "initializer_list"
header "mutex"
header "random"
header "ratio"
header "regex"
header "scoped_allocator"
header "system_error"
header "thread"
header "tuple"
header "typeindex"
header "type_traits"
header "unordered_map"
header "unordered_set"
/// additional headers.
requires cplusplus
export *
/// C compatibility headers.
module compat {
module cassert {
header "cassert"
requires cplusplus
export *
}
module cstdlib {
header "cstdlib"
requires cplusplus
export *
}
}
}