From 7d21113b054a6387687fb486def61dd2f2c4d99f Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Wed, 8 Jan 2020 09:11:34 +0100 Subject: qmlformat: Fix whitespace for parameter defaults Change-Id: I7958bf1546cc5854fc9b9856e36928ea932af0ca Reviewed-by: Ulf Hermann --- tools/qmlformat/commentastvisitor.h | 2 +- tools/qmlformat/dumpastvisitor.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tools') diff --git a/tools/qmlformat/commentastvisitor.h b/tools/qmlformat/commentastvisitor.h index dee2bb3983..1df907f8a3 100644 --- a/tools/qmlformat/commentastvisitor.h +++ b/tools/qmlformat/commentastvisitor.h @@ -113,7 +113,7 @@ public: private: bool isCommentAttached(const SourceLocation& location) const; - QList findCommentsInLine(quint32 line, bool includePrevious=false) const; + QList findCommentsInLine(quint32 line, bool includePrevious = false) const; Comment findComment(SourceLocation first, SourceLocation last, int locations = Comment::DefaultLocations) const; diff --git a/tools/qmlformat/dumpastvisitor.h b/tools/qmlformat/dumpastvisitor.h index 67e45d4bb3..e73a7b628f 100644 --- a/tools/qmlformat/dumpastvisitor.h +++ b/tools/qmlformat/dumpastvisitor.h @@ -68,25 +68,25 @@ public: bool error() const { return m_error; } private: QString generateIndent() const; - QString formatLine(QString line, bool newline=true) const; + QString formatLine(QString line, bool newline = true) const; QString formatComment(const Comment &comment) const; QString getComment(Node *node, Comment::Location location) const; QString getListItemComment(SourceLocation srcLocation, Comment::Location location) const; - void addNewLine(bool always=false); + void addNewLine(bool always = false); void addLine(QString line); QString getOrphanedComments(Node *node) const; - QString parseStatement(Statement *statement, bool blockHasNext=false, + QString parseStatement(Statement *statement, bool blockHasNext = false, bool blockAllowBraceless = false); QString parseStatementList(StatementList *list); QString parseExpression(ExpressionNode *expression); - QString parsePatternElement(PatternElement *element, bool scope=true); + QString parsePatternElement(PatternElement *element, bool scope = true); QString parsePatternElementList(PatternElementList *element); QString parseArgumentList(ArgumentList *list); -- cgit v1.2.3