Fznamznon wrote:

> @Fznamznon in non-template version `else if 
> (!Constructor->isDependentContext() 
> &&!Constructor->isDelegatingConstructor())` this is the check that is 
> performed and `isDependentContext` is true for templates, so I have separate 
> condition for template versions. I'm doing the same thing as non-templated 
> version just in different if condition.

I understand that templates are dependent contexr. I was wondering why do we 
have `!Constructor->isDependentContext()` condition at all. If we do the same 
thing, why do we need a spare condition at all?

https://github.com/llvm/llvm-project/pull/81225
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to