The supported C language standard to use for compiling C sources in the package.


enum CLanguageStandard : String, Encodable


Enumeration Cases

case c89

The identifier for the C89 language standard.

case c90

The identifier for the C90 language standard.

case c99

The identifier for the C99 language standard.

case c11

The identifier for the C11 language standard.

case gnu11

The identifier for the GNU11 language standard.

case gnu89

The identifier for the GNU89 language standard.

case gnu90

The identifier for the GNU90 language standard.

case gnu99

The identifier for the GNU99 language standard.

case iso9899_1990

The identifier for the ISO9899-1990 language standard.

case iso9899_199409

The identifier for the ISO9899-199409 language standard.

case iso9899_1999

The identifier for the ISO9899-1999 language standard.

case iso9899_2011

The identifier for the ISO9899-2011 language standard.

Encoding and Decoding

func encode(to: Encoder)

Encodes this value into the given encoder, when the type’s RawValue is String.


func hash(into: inout Hasher)

Hashes the C language standard by feeding the item into the given hasher.

var hashValue: Int

The hash value for the C language standard.

Operator Functions

static func != (CLanguageStandard, CLanguageStandard) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Instance Properties


Conforms To

See Also

Declaring Supported Languages

enum SwiftVersion

The version of the Swift language to use for compiling Swift sources in the package.

enum CXXLanguageStandard

The supported C++ language standards to use for compiling C++ sources in the package.

var swiftLanguageVersions: [SwiftVersion]?

The list of Swift versions that this package is compatible with.

var cLanguageStandard: CLanguageStandard?

The C language standard to use for all C targets in this package.

var cxxLanguageStandard: CXXLanguageStandard?

The C++ language standard to use for all C++ targets in this package.