mizvekov wrote:

@michaelrj-google 
> ```
>    ::sapi::v::IntBase<enum A::StorageType> v_type__(type__);
> ```
> 
> which clang errors on.

And that enum type, is that created by Sema, or is that synthesized by code 
from within your project?

If you are creating that type as a canonical type, or that type is being 
canonicalized for some reason, then the placement of the enum keyword is 
controlled by the `SuppressTagKeyword` printing policy.

If you are creating that type yourself within your project, you should use the 
new TagType ASTContext constructor which takes an ElaboratedKeyword as a 
parameter. Looks like in that case, you should set it to  
`ElaboratedKeyword::None`.

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

Reply via email to