[cfe-dev] Reflection/metaparsing implem

David Chisnall via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 12 02:08:18 PST 2019


On 11/11/2019 23:17, David Rector via cfe-dev wrote:
> Well then for any such "volatile" stuff you’d either CLANG_NO_REFLECT it 
> or define a CLANG_RELFECT_VOLATILE so that you’d get always get a 
> warning if it was used.

If you know in advance that something is implemented in a way that is 
not the right long-term solution, you probably wouldn't implement it 
that way in the first place.  A lot of the volatility in the Clang ASTs 
comes from experiences trying to use the APIs in different ways and 
learning which design decisions work and which ones don't.  If you want 
to freeze these APIs in perpetuity, then you are likely to also freeze 
the set of things that they're useful for.

David



More information about the cfe-dev mailing list