Diagnostic Categories are fairly annoying, and are only enforced
by a runtime-debug-only assert. This puts in a touch more work
to get this all done at compile-time with static asserts.
Details
Details
- Reviewers
craig.topper rnk rsmith chandlerc - Commits
- rGdbc57d6e0e6a: Change Diagnostic Category size error from runtime to compiletime
rG0a539b5859df: Change Diagnostic Category size error from runtime to compiletime
rC311905: Change Diagnostic Category size error from runtime to compiletime
rL311905: Change Diagnostic Category size error from runtime to compiletime
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Ugg... disregard the system-header-line-directive-ms-lineendings.c issue, I'm going to try to figure that out....
Comment Actions
I'm trying to research it... Some people (Stephen Hines & I) are having this issue with the git mirror, but others (CraigT) are not for some reason. There is a cfe-dev discussion started by Stephen, but I've really got no idea whats wrong.
include/clang/Basic/AllDiagnostics.h | ||
---|---|---|
37 ↗ | (On Diff #112651) | I'd prefer it if we sank this into a .cpp file so that when it fails, it doesn't create a waterfall of colorful static_assert errors. :) |
Comment Actions
Moved static assert into a .cpp file, DiagnosticIDs.cpp seems like the one that makes the most sense.