[PATCH] D158526: [clang] Properly print unnamed members in diagnostics
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 24 05:57:56 PDT 2023
aaron.ballman accepted this revision.
aaron.ballman added a comment.
LGTM aside from a small nit
================
Comment at: clang/lib/AST/Decl.cpp:4567-4569
+ DeclarationName Name = getDeclName();
+ Name.print(OS, Policy);
+}
----------------
This way we're not reimplementing the same logic that `NamedDecl` does (in case we update that logic at some point in the future).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158526/new/
https://reviews.llvm.org/D158526
More information about the cfe-commits
mailing list