[llvm-dev] __FUNCTION__ - MS: string literal vs. GCC: string

25 views
Skip to first unread message

chiasa.men via llvm-dev

unread,
Sep 15, 2021, 5:59:07 AM9/15/21
to via llvm-dev

Is there a way to tell clang to adapt to the microsoft way of defining __FUNCTION__ as string literal and not as string?


I stumbled upon this problem and am obviously not alone:

https://stackoverflow.com/questions/4773941/wide-version-of-function-on-linux/51381572#51381572



David Blaikie via llvm-dev

unread,
Sep 15, 2021, 4:39:09 PM9/15/21
to chiasa.men, Clang Dev
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.

_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply all
Reply to author
Forward
0 new messages