forked from qt-creator/qt-creator
ClangFormat: Format multiple text ranges at once
'reformat' function in LibFormat accepts mutilple ranges. Let's provide the ranges for the same file together when formatting on save and formatting after fix-its. Change-Id: I27789da83a1efc27beb57acf238508a191562bb9 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -67,11 +67,10 @@ private:
|
||||
QTextDocument *document(const QString &filePath) const;
|
||||
void shiftAffectedReplacements(const ReplacementOperation &op, int startIndex);
|
||||
|
||||
void tryToFormat(TextEditor::Indenter &indenter,
|
||||
const TextEditor::TabSettings &tabSettings,
|
||||
QTextDocument *doc,
|
||||
const ReplacementOperation &op,
|
||||
int currentIndex);
|
||||
void format(TextEditor::Indenter &indenter,
|
||||
QTextDocument *doc,
|
||||
const ReplacementOperations &operationsForFile,
|
||||
int firstOperationIndex);
|
||||
void shiftAffectedReplacements(const QString &fileName,
|
||||
const TextEditor::Replacements &replacements,
|
||||
int startIndex);
|
||||
|
||||
Reference in New Issue
Block a user