Skip to content

[HLSL] Allow EmptyDecl in cbuffer #128238

Closed
@llvm-beanz

Description

@llvm-beanz

EmptyDecls should be allowed in cbuffer:

https://github.com/llvm/llvm-project/blob/main/clang/lib/Parse/ParseHLSL.cpp#L33

This allows formations like:

cbuffer CB {
;
}

Which seems silly, but happens!

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions