Skip to content

[Feature Request] auto keyword for variable declarations #8450

@llvm-beanz

Description

@llvm-beanz

We have a request for this in hlsl-specs (microsoft/hlsl-specs#24). Ecma TC 57 hasn't yet decided that this will be a feature for HLSL, however we have some driving use cases. To facilitate those use cases we want to add auto to DXC as an extension pending a decision by TC 57.

Is your feature request related to a problem? Please describe.
We've done some prototyping of higher-level interfaces that get a bit template-ugly. The code becomes significantly easier to read with the auto keyword.

Additional context
Clang already supports auto for HLSL with C++11-level functionality.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions