[clang-tools-extra] r367812 - [clangd] Expose -offset-encoding=utf-32, which has been implemented for ages
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 01:14:17 PDT 2019
Author: sammccall
Date: Mon Aug 5 01:14:17 2019
New Revision: 367812
URL: http://llvm.org/viewvc/llvm-project?rev=367812&view=rev
Log:
[clangd] Expose -offset-encoding=utf-32, which has been implemented for ages
Modified:
clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=367812&r1=367811&r2=367812&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Mon Aug 5 01:14:17 2019
@@ -359,7 +359,9 @@ opt<OffsetEncoding> ForceOffsetEncoding{
values(
clEnumValN(OffsetEncoding::UTF8, "utf-8", "Offsets are in UTF-8 bytes"),
clEnumValN(OffsetEncoding::UTF16, "utf-16",
- "Offsets are in UTF-16 code units")),
+ "Offsets are in UTF-16 code units"),
+ clEnumValN(OffsetEncoding::UTF32, "utf-32",
+ "Offsets are in unicode codepoints")),
init(OffsetEncoding::UnsupportedEncoding),
};
More information about the cfe-commits
mailing list