[PATCH] D157747: Support Unicode Microsoft predefined macros

Richard Dzenis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 11 14:51:06 PDT 2023


RIscRIpt added a comment.

This implementation preserves support for identifiers `L__FUNCSIG__` and `L__FUNCTION__` (which have never been supported by MSVC), and adds other identifiers for all supported encodings: L, u8, u, U.

If breaking backwards compatibility in clang (with Microsoft Extensions) is allowed, then I'd prefer other (more correct) solution: support for `__LPREFIX`-family macros ( see https://godbolt.org/z/eacYqh1ab ), and remove token/identifiers like `L__FUNCTION__`; relevant issue https://github.com/llvm/llvm-project/issues/27402
I'll try to implement this alternative approach.


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