[clangd] Fix a bug in TweakTest::decorate()
authorNathan Ridge <zeratul976@hotmail.com>
Tue, 21 Feb 2023 08:22:59 +0000 (03:22 -0500)
committerNathan Ridge <zeratul976@hotmail.com>
Tue, 14 Mar 2023 07:02:26 +0000 (03:02 -0400)
commite9a88b6178d3a30123394d1fef6b51140f79d03a
treebd512a9498f5ea9386947706a60ab2b6e3bcbe22
parent3e78fa860235431323aaf08c8fa922d75a7cfffa
[clangd] Fix a bug in TweakTest::decorate()

The second argument to string::substr() is a count,
not an end position.

Differential Revision: https://reviews.llvm.org/D144453
clang-tools-extra/clangd/unittests/tweaks/TweakTesting.cpp