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

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 5 06:37:40 PDT 2022


tbaeder added a comment.

I don't know much about fixit hints, would they be appropriate to display it below the line itself, e.g.

  test.cpp:24:17: note: expression evaluates to
  static_assert(c != c);
              '0' != '0'
                ~~^~~~

Or would it be even better to just inline the evaluated expression into the `static_assert` ala

  test.cpp:24:17: note: expression evaluates to
  static_assert('0' != '0');
                  ~~^~~~


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

https://reviews.llvm.org/D130894



More information about the cfe-commits mailing list