microsoft/DirectX-Headers

D3DX12.H emits a -Wreserved-identifier warning with clang v13

walbourn opened this issue · 1 comments

Officially _ followed by a capital letter is reserved by the C++ Standard for implementors of the compiler and library. Clang v13 adds a new warning to detect this case.

d3dx12.h(2466,41): warning: identifier '_Type' is reserved because it starts with '_' followed by a capital letter [-Wreserved-identifier]
    D3D12_PIPELINE_STATE_SUBOBJECT_TYPE _Type;
                                        ^
d3dx12.h(2467,21): warning: identifier '_Inner' is reserved because it starts with '_' followed by a capital letter [-Wreserved-identifier]
    InnerStructType _Inner;

Proposed PR to fix this: #49