[PATCH] D130894: [clang] Print more information about failed static assertions

Timm B├Ąder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 4 23:09:43 PDT 2022


tbaeder added a comment.

For the record, the output now looks something like this:

  test.cpp:24:1: error: static assertion failed due to requirement 'c != c'
  static_assert(c != c);
  ^             ~~~~~~
  test.cpp:24:17: note: expression evaluates to '('0' != '0')'
  static_assert(c != c);
                ~~^~~~
  test.cpp:25:1: error: static assertion failed due to requirement 'c > 'a''
  static_assert(c > 'a');
  ^             ~~~~~~~
  test.cpp:25:17: note: expression evaluates to '('0' > 'a')'
  static_assert(c > 'a');
                ~~^~~~~
  2 errors generated.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130894/new/

https://reviews.llvm.org/D130894



More information about the cfe-commits mailing list