[all-commits] [llvm/llvm-project] e20a1e: clang-format-vs : Fix Unicode formatting
Hans via All-commits
all-commits at lists.llvm.org
Wed Nov 27 00:59:11 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e20a1e486e144c88188bc7b420885d5326b39088
https://github.com/llvm/llvm-project/commit/e20a1e486e144c88188bc7b420885d5326b39088
Author: Hans Wennborg <hans at chromium.org>
Date: 2019-11-27 (Wed, 27 Nov 2019)
Changed paths:
M clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs
Log Message:
-----------
clang-format-vs : Fix Unicode formatting
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".
Patch by empty2fill!
Differential revision: https://reviews.llvm.org/D70633
More information about the All-commits
mailing list