[PATCH] D90116: [clangd] Escape Unicode characters to fix Windows builds

Ilya Golovenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 5 04:41:20 PST 2020


ilya-golovenko added a comment.

It is also possible to force MSVC to treat a certain source code files as UTF-8 by adding the following pragma to the beginning of the file:

  #ifdef _MSVC_VER
  #pragma execution_character_set("utf-8");
  #endif


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90116



More information about the cfe-commits mailing list