[PATCH] D155610: [Clang][Sema] Fix display of characters on static assertion failure
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 16 12:56:47 PDT 2023
hubert.reinterpretcast added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:16920-16926
+ if (llvm::ConvertCodePointToUTF8(Value, Ptr)) {
+ OS << StringRef(Arr, Ptr - Arr);
+ } else {
+ OS << "\\x"
+ << llvm::format_hex_no_prefix(Value, TyWidth / 4,
+ /*Upper=*/true);
+ }
----------------
Minor nit: Braces no longer needed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155610/new/
https://reviews.llvm.org/D155610
More information about the cfe-commits
mailing list