[PATCH] D84658: [clang] Overload NamedDecl::printName to provide a user-friendly name for unnamed entities

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 28 08:20:57 PDT 2020


riccibruno added a comment.

Note that I am planning two improvements as a follow-up to this patch:

- For a parameter `(unnamed variable at {{.*}}:<line>:<col> of type <type>)` -> `(unnamed parameter at {{.*}}:<line>:<col> of type <type>)`
- For a lambda:
  - `(unnamed class at {{.*}}:<line>:<col>)` -> `(lambda at {{.*}}:<line>:<col>)`
  - For a captured field in the lambda class: `(unnamed field at {{.*}}:<line>:<col> of type <type>)` -> something which refers to the captured entity instead of the unnamed field.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84658



More information about the cfe-commits mailing list