this’d be more suitable on cfe-dev (moving to cfe-dev, llvm-dev to bcc) - though might present some challenges in compatibility with GCC if GCC’s doing it differently. I guess in ms-mode (clang-cl) it should/could be done in the MS-way.
In addition to supporting FUNCTION, Clang also provides L__FUNCTION__ as a built-in wide string. You’ll need to either build for Windows or enable -fms-extensions for this to be available.
I’m not sure what the history is here – I can’t find a version of MSVC that allows L__FUNCTION__, so I’m not sure why this feature is under -fms-extensions rather than simply being available by default as a Clang extension. MSVC instead expects L"" FUNCTION to be used to get a wide version.