Skip to content

Enumerations with a fixed underlying type documentation issue #116880

Closed
@pinskia

Description

@pinskia

The current documentation (https://clang.llvm.org/docs/LanguageExtensions.html) has:
"Clang provides support for C++11 enumerations with a fixed underlying type within Objective-C. For example, one can write an enumeration type as:"

But it is actually allowed in C and not just Objective-C. In fact it is no longer an extension for C23.
Also the documentation mentions __has_feature(objc_fixed_enum) being true if the extension exists but it is false for C even though it is there for C too.

Otherwise the extension for the C case is not documented at all.

Metadata

Metadata

Assignees

Labels

clangClang issues not falling into any other categoryconfirmedVerified by a second partydocumentationgood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions