Skip to content

Correct Printing of Pointers and References to Vectors #114868

@pow2clk

Description

@pow2clk

The order in which vector type elements are printed results in the * or & operand being placed such that it might be interpreted not as a pointer to a vector, but as a vector of pointers to the element type. See this example in the diagnostic output and potentially follow this discussion that motivated the issue.

The solution is pretty simple and involves printing most of the vector elements in the Before function. This will impact a few tests that depend on the current ordering where, rather than the __private qualifier such as in this OpenCL test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language Supportclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions