savchart wrote:

One note about the `macro_wrap` case: the current check, `!Loc.isMacroID()`, 
treats all macro-expanded tokens the same.

Using `SM.isMacroArgExpansion(Loc)` would let us distinguish tokens coming from 
the macro definition body from tokens written by the user as macro arguments at 
the call site.

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

Reply via email to