[PATCH] D157747: Support Unicode Microsoft predefined macros

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 12 01:54:30 PDT 2023


cor3ntin added a comment.

This does not appear to be valid under MSVC and I don't think we should support features that MS does not (Nor can i find any documentation that it ought to work)
https://godbolt.org/z/7Te3YYeb9

Supporting the same concatenation behavior MSVC does have seem like a cleaner approach. We would not have an many new tokens.
Before you do anything though. I'd like the feedback of more folks.

I can't find any documentation for LPREFIX, but it seems in the general case, it can be emulated that way https://godbolt.org/z/dr7MjMs99

In terms of breaking change, it's only an issue if L/u/etc are existing macro at the point of use.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157747/new/

https://reviews.llvm.org/D157747



More information about the cfe-commits mailing list