ClangFormat: Fix formatting for LineEnding CRLF

Change-Id: I10abc07f5d178a7114faba7174ea1bfc80965174
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Artem Sokolovskii
2023-12-19 16:08:05 +01:00
parent 5aeeb74488
commit 34e537a063

View File

@@ -392,6 +392,7 @@ Utils::ChangeSet convertReplacements(const QTextDocument *doc,
.size();
QString replacementText = QString::fromStdString(replacement.getReplacementText().str());
replacementText.replace("\r", "");
auto sameCharAt = [&](int replacementOffset) {
if (replacementText.size() <= replacementOffset || replacementOffset < 0)
return false;