ClangSharp icon indicating copy to clipboard operation
ClangSharp copied to clipboard

CX_CharacterKind.CX_CLK_Ascii literal breaks GUID

Open miloush opened this issue 3 years ago • 1 comments

inline constexpr GUID InterfaceGetIID(name*) noexcept { return GUID{ uuid }; }
DWRITE_BEGIN_INTERFACE(IDWriteFontFileLoader, "727cad4e-d6af-4c9e-8a08-d695b11caa49") : IUnknown
public static Guid InterfaceGetIID(IDWriteFontFileLoader* param0)
{
    return new Guid(new byte[] { 0x37, 0x32, 0x37, 0x63, 0x61, 0x64, 0x34, 0x65, 0x2D, 0x64, 0x36, 0x61, 0x66, 0x2D, 0x34, 0x63, 0x39, 0x65, 0x2D, 0x38, 0x61, 0x30, 0x38, 0x2D, 0x64, 0x36, 0x39, 0x35, 0x62, 0x31, 0x31, 0x63, 0x61, 0x61, 0x34, 0x39, 0x00 });
}

miloush avatar Jun 05 '22 16:06 miloush

@miloush could you provide more context on this.

It looks like you've got an invalid declaration in the first place as GUID { } is going to expect a initializer list expression and not an ASCII string.

Looking at dwrite_core.h, its not clear where the define is coming from or how it's being modified.

tannergooding avatar Jun 08 '22 01:06 tannergooding

Closing this as its waiting on author feedback so a reliable repro can be created.

Please feel free to re-open if the necessary details can be provided.

tannergooding avatar Sep 18 '22 19:09 tannergooding