There are two asserts that can trigger if the number of diagnostic messages in a
kind overflows the number of available enums values. The one that fires if you
exceed this limit by one is helpful. The one that fires if you exceed it by more than
one is not as helpful. Combining the two makes sense I think.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
It'd be great if we could check this during compilation somehow. But anyway, LGTM.
lib/Basic/DiagnosticIDs.cpp | ||
---|---|---|
104 | Maybe drop the .DiagIDs here? |
Maybe drop the .DiagIDs here?