[PATCH] D115031: [AST] Print NTTP args as string-literals when possible

Zhihao Yuan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 4 05:22:24 PST 2021


lichray updated this revision to Diff 391833.
lichray marked an inline comment as done.
lichray added a comment.

- Switch to `llvm::SmallString`
- Refactor code that prints C-style builtin escape sequences
- Stop printing strings with embedded NULs in NTTP types
- Add an `EntireContentsOfLargeArray` pretty-print policy


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115031

Files:
  clang/include/clang/AST/PrettyPrinter.h
  clang/include/clang/Basic/CharInfo.h
  clang/lib/AST/APValue.cpp
  clang/lib/AST/Expr.cpp
  clang/test/SemaTemplate/temp_arg_string_printing.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115031.391833.patch
Type: text/x-patch
Size: 15338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211204/110ffefe/attachment-0001.bin>


More information about the cfe-commits mailing list