[PATCH] D139985: [clang][AST][NFC] Move isSubstitutedDefaultArgument out of TypePrinter into separate component

Michael Buch via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 17:50:04 PST 2022


Michael137 created this revision.
Michael137 added a reviewer: aprantl.
Herald added a project: All.
Michael137 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

A use-case has come up in DWARF CodeGen where we want to determine
whether a particular template argument matches the default template
parameter declaration.

Re-using this TypePrinter component there allows us to avoid duplicating
most of this code and immediately allows us to cover a wider range
of use-cases than the DWARF CodeGen does today.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139985

Files:
  clang/include/clang/AST/TemplateUtils.h
  clang/lib/AST/CMakeLists.txt
  clang/lib/AST/TemplateUtils.cpp
  clang/lib/AST/TypePrinter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139985.482676.patch
Type: text/x-patch
Size: 15039 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221214/d5a9ea5c/attachment.bin>


More information about the cfe-commits mailing list