[clang] [Sema] Default arguments for template parameters affect ContainsUnexpandedPacks (PR #99880)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 07:18:17 PDT 2024
================
@@ -44,6 +44,13 @@ using namespace clang;
// TemplateParameterList Implementation
//===----------------------------------------------------------------------===//
+namespace {
+template <class TemplateParam>
+bool DefaultArgumentContainsUnexpandedPack(const TemplateParam &P) {
----------------
zyn0217 wrote:
We also prefer a `static` function instead of putting it inside an annonymous namespace, at least for clang frontend codes.
https://github.com/llvm/llvm-project/pull/99880
More information about the cfe-commits
mailing list