[PATCH] D37122: Change Diagnostic Category size error from runtime to compiletime
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 28 10:35:38 PDT 2017
rnk added inline comments.
================
Comment at: include/clang/Basic/AllDiagnostics.h:37
+#define STRINGIFY_NAME(NAME) #NAME
+#define VALIDATE_DIAG_SIZE(NAME) \
+ static_assert( \
----------------
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. :)
https://reviews.llvm.org/D37122
More information about the cfe-commits
mailing list