bloomberg / clang-p2996

Experimental clang support for WG21 P2996 (Reflection).
https://github.com/bloomberg/clang-p2996/tree/p2996/P2996.md
51 stars 8 forks source link

Parse reflection operands as unary-expressions #78

Closed katzdm closed 2 weeks ago

katzdm commented 1 month ago

Reflection of reflect-expressions is currently implemented by ParseCastExpression, but P2996 defines reflect-expressions under the more narrow class of unary-expressions.

It'd probably be a good idea to have that reflected in the implementation. Might hold off on this until we settle on a new syntax, though.