ClangFormat: Fix list declaration

Fixed list declaration indentation.
Fixed function declaration with parameters on the new line.
Added tests for both cases.

Fixes: QTCREATORBUG-25011
Change-Id: Ida4f6ec4f407c5e5b015dc2c0afff110262d9645
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Artem Sokolovskii
2022-07-05 16:38:51 +02:00
parent 5817bdf87d
commit 17693bc415
3 changed files with 106 additions and 15 deletions

View File

@@ -110,6 +110,8 @@ private slots:
void testChainedMemberFunctionCalls();
void testCommentBlock();
void testClassIndentStructure();
void testIndentInitializeVector();
void testIndentFunctionArgumentOnNewLine();
private:
void insertLines(const std::vector<QString> &lines);