Português (Portuguese)
Português (Portuguese)
Appearance
Português (Portuguese)
Português (Portuguese)
Appearance
STRUCT
Headers
Contents
umbrellaHeader
public
private
project
exclusionRule
headers(public:private:project:exclusionRule:)
allHeaders(from:umbrella:private:)
onlyHeaders(from:umbrella:private:)
public struct Headers: Codable, Equatable, Sendable
A group of public, private and project headers.
umbrellaHeader
public var umbrellaHeader: Path?
Path to an umbrella header, which will be used to get list of public headers.
public
public var `public`: FileList?
Relative glob pattern that points to the public headers.
private
public var `private`: FileList?
Relative glob pattern that points to the private headers.
project
public var project: FileList?
Relative glob pattern that points to the project headers.
exclusionRule
public var exclusionRule: AutomaticExclusionRule
Rule, which determines how to resolve found duplicates in public/private/project scopes
headers(public:private:project:exclusionRule:)
public static func headers(
public: FileList? = nil,
private: FileList? = nil,
project: FileList? = nil,
exclusionRule: AutomaticExclusionRule = .projectExcludesPrivateAndPublic
) -> Headers
allHeaders(from:umbrella:private:)
public static func allHeaders(
from list: FileList,
umbrella: Path,
private privateHeaders: FileList? = nil
) -> Headers
Headers from the file list are included as:
public
, if the header is present in the umbrella headerprivate
, if the header is present in the private
listproject
, otherwisepublic
and project
headersprivate
headersName | Description |
---|---|
from | File list, which contains public and project headers |
umbrella | File path to the umbrella header |
private | File list, which contains private headers |
onlyHeaders(from:umbrella:private:)
public static func onlyHeaders(
from list: FileList,
umbrella: Path,
private privateHeaders: FileList? = nil
) -> Headers
Headers from the file list are included as:
public
, if the header is present in the umbrella headerprivate
, if the header is present in the private
listpublic
and project
headersprivate
headersName | Description |
---|---|
from | File list, which contains public and project headers |
umbrella | File path to the umbrella header |
private | File list, which contains private headers |