[all-commits] [llvm/llvm-project] 2176c5: [Clang][Sema] Fix display of characters on static ...
Takuya Shimizu via All-commits
all-commits at lists.llvm.org
Tue Oct 3 22:11:00 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2176c5e510e3bfcbc75afb13e78d287141f239a7
https://github.com/llvm/llvm-project/commit/2176c5e510e3bfcbc75afb13e78d287141f239a7
Author: Takuya Shimizu <shimizu2486 at gmail.com>
Date: 2023-10-04 (Wed, 04 Oct 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/Diagnostic.h
M clang/lib/Basic/Diagnostic.cpp
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/Lexer/cxx1z-trigraphs.cpp
M clang/test/SemaCXX/static-assert-cxx26.cpp
M clang/test/SemaCXX/static-assert.cpp
Log Message:
-----------
[Clang][Sema] Fix display of characters on static assertion failure
This patch fixes the display of characters appearing in LHS or RHS of == expression in notes to static assertion failure.
This applies C-style escape if the printed character is a special character. This also adds a numerical value displayed next to the character representation.
This also tries to print multi-byte characters if the user-provided expression is multi-byte char type.
Reviewed By: cor3ntin
Differential Revision: https://reviews.llvm.org/D155610
More information about the All-commits
mailing list