Skip to content
Unverified Commit bdc6974f authored by Matheus Izvekov's avatar Matheus Izvekov
Browse files

[clang] Implement ElaboratedType sugaring for types written bare



Without this patch, clang will not wrap in an ElaboratedType node types written
without a keyword and nested name qualifier, which goes against the intent that
we should produce an AST which retains enough details to recover how things are
written.

The lack of this sugar is incompatible with the intent of the type printer
default policy, which is to print types as written, but to fall back and print
them fully qualified when they are desugared.

An ElaboratedTypeLoc without keyword / NNS uses no storage by itself, but still
requires pointer alignment due to pre-existing bug in the TypeLoc buffer
handling.

Signed-off-by: default avatarMatheus Izvekov <mizvekov@gmail.com>

Differential Revision: https://reviews.llvm.org/D112374
parent ee88c0cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment