Bug 1655101 - AssertTiedFieldsAreExhaustive<T>() gives better compiler errors. r...
commit1ef508fffd13b3a462b2a1f8b780e16a5d83de23
authorKelsey Gilbert <kelsey.gilbert@mozilla.com>
Thu, 4 Jan 2024 18:38:52 +0000 (4 18:38 +0000)
committerKelsey Gilbert <kelsey.gilbert@mozilla.com>
Thu, 4 Jan 2024 18:38:52 +0000 (4 18:38 +0000)
treef395241d72aea05ed06af5f6bbb3fa5291d5406a
parentef87b37f725bffa41db6364a07186ff7db4554cc
Bug 1655101 - AssertTiedFieldsAreExhaustive<T>() gives better compiler errors. r=gfx-reviewers,aosmond

A templated class FieldDebugInfoT is used, because compilers will print
the template parameters of classes involved in error messages, so we can
use this to print a number of pieces of info, which will pinpoint where
the issue is.

static_assert with constexpr formatting is coming in C++26. :')

Differential Revision: https://phabricator.services.mozilla.com/D197542
dom/canvas/TiedFields.h
dom/canvas/WebGLIpdl.h