[PATCH] D70633: clang-format-vs : Fix Unicode Replacements
empty2fill via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 23 03:43:39 PST 2019
empty2fill created this revision.
empty2fill added reviewers: clang-format, hans.
empty2fill added a project: clang-format.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Use UTF-8 for communication with clang-format and convert the replacements offset/length to characters position/count.
Internally VisualStudio.Text.Editor.IWpfTextView use sequence of Unicode characters encoded using UTF-16 and use characters position/count for manipulating text.
Resolved "Error while running clang-format: Specified argument was out of the range of valid values. Parameter name: replaceSpan".
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70633
Files:
clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70633.230757.patch
Type: text/x-patch
Size: 5394 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191123/a8b21224/attachment.bin>
More information about the cfe-commits
mailing list