diff options
author | Xiaofeng Wang <wasphin@gmail.com> | 2020-09-19 01:01:47 +0800 |
---|---|---|
committer | Xiaofeng Wang <wasphin@gmail.com> | 2020-10-01 15:04:54 +0000 |
commit | b6b6482c72748b42f2ca0993826d3ff859dc64eb (patch) | |
tree | b26057e2eaf0b2c851d6862463834348b6449925 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | b819f3fd5210a6edc1fc208a4b9375b395349cdd (diff) | |
download | qt-creator-b6b6482c72748b42f2ca0993826d3ff859dc64eb.tar.gz |
Add an action to format code using clang-format by lines
When the file contians non-ascii characters, the position calculated by
QTextBlock may not the same as clang-format. Format at Cursor will not
work in this case, formatting by lines as a workaround.
Fixes: QTCREATORBUG-21812
Change-Id: I4906130111ef2a2f15ffa698a14bec9430cbb3d5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
0 files changed, 0 insertions, 0 deletions