[PATCH] D115521: [Templight] Don't return string for name for unnamed template parameters

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 10 07:06:38 PST 2021


Szelethus created this revision.
Szelethus added reviewers: sabel83, xazax.hun, rsmith, whisperity, martong, mikael-s-persson, mclow.lists.
Szelethus added a project: clang.
Herald added subscribers: steakhal, gamesh411, dkrupp, rnkovacs.
Szelethus requested review of this revision.
Herald added a subscriber: cfe-commits.

Patch by oktal3000 <https://github.com/oktal3700>: https://github.com/mikael-s-persson/templight/pull/40

When a template parameter is unnamed, the `name` of `-templight-dump` might return an empty string. This is fine, they are unnamed after all, but it might be more user friendly to at least describe what entity is unnamed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115521

Files:
  clang/lib/Frontend/FrontendActions.cpp
  clang/test/Templight/templight-empty-entries-fix.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115521.393469.patch
Type: text/x-patch
Size: 20422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211210/05153988/attachment-0001.bin>


More information about the cfe-commits mailing list