Skip to content

clang-format breaks hlsl syntax for infinity (+1.#INF) #130787

Open
@clshortfuse

Description

@clshortfuse

When using clang format on

float x = y * +1.#INF;

clang-format will separate it to

float x = y * +1. #INF;

This is invalid HLSL code and won't allow it to be compiled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions