erichkeane wrote:

This is absolutely the wrong approach, using textual location for something 
like this is going to end up doing absolutely silly things with macros.

IF we really care about the ordering here, we should figure out why the 
switch-case isn't currently storing in lexical ordering correctly.  They 
shouldn't require a sort or anything, the 'order we evaluate' should be exactly 
how it is stored, and it is a little surprising that it isnt.  In fact, if you 
look, our AST printing gets them in lexical ordering without any sorting 
(https://godbolt.org/z/hhve9a37K).

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

Reply via email to