https://github.com/efriedma-quic commented:

We can't do this purely as a codegen thing; we have to model it in the AST, for 
a few reasons:

- There's a third state for constructors beyond "exists" and "doesn't exist": 
they can exist, but not be instantiated.
- Correctly calling a copy constructor is a lot more complicated in some edge 
cases, like with default arguments.
- Static analysis need explicit AST nodes to model the operations.

----

Have you compared what MSVC does here?

https://github.com/llvm/llvm-project/pull/212331
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to