[PATCH] D37122: Change Diagnostic Category size error from runtime to compiletime

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 24 15:32:56 PDT 2017


erichkeane created this revision.

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.


https://reviews.llvm.org/D37122

Files:
  include/clang/Basic/AllDiagnostics.h
  include/clang/Basic/DiagnosticIDs.h
  lib/Basic/DiagnosticIDs.cpp
  test/Frontend/system-header-line-directive-ms-lineendings.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37122.112620.patch
Type: text/x-patch
Size: 6974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170824/81c102c7/attachment-0001.bin>


More information about the cfe-commits mailing list