[PATCH] D137583: [lldb] Fix simple template names and template params with scope qualifiers

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 7 13:22:24 PST 2022


aeubanks created this revision.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added projects: clang, LLDB.
Herald added subscribers: lldb-commits, cfe-commits.

Followup to D134378 <https://reviews.llvm.org/D134378>.

With PrintingPolicy::SuppressScope, we'd also not print the scope in template params. The intention was only to skip the scope for the class because we expect template params to be fully qualified when comparing them for simple template names.

Add a PrintingPolicy::NoSuppressTemplateParamsScope which disables SuppressScope for template params.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137583

Files:
  clang/include/clang/AST/PrettyPrinter.h
  clang/lib/AST/TypePrinter.cpp
  lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
  lldb/test/API/lang/cpp/unique-types2/TestUniqueTypes.py
  lldb/test/API/lang/cpp/unique-types2/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137583.473766.patch
Type: text/x-patch
Size: 3944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221107/98f4bfc6/attachment-0001.bin>


More information about the cfe-commits mailing list