mizvekov wrote:

> Thanks! However, for the following piece of code
> `getOriginalDecl()` called on the pointed-to type gives the 
> forward-declaration from the 3rd line, and the forward-declaration from the 
> 1st line for its canonical type.

Yes that is correct.

The 3rd line is what declaration was found by type lookup at that point, and 
the canonical declaration has long been established in clang as the first 
declaration.

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

Reply via email to