[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 12:49:04 PDT 2025


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


More information about the cfe-commits mailing list