aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlformat
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2020-01-08 09:11:34 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2020-01-08 10:43:46 +0100
commit7d21113b054a6387687fb486def61dd2f2c4d99f (patch)
tree455dfd87f9613a31fccbeb25c8f8940ae2657a85 /tools/qmlformat
parent6f1618e13830c55de70a1bd45062d7f407343b27 (diff)
qmlformat: Fix whitespace for parameter defaults
Change-Id: I7958bf1546cc5854fc9b9856e36928ea932af0ca Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools/qmlformat')
-rw-r--r--tools/qmlformat/commentastvisitor.h2
-rw-r--r--tools/qmlformat/dumpastvisitor.h8
2 files changed, 5 insertions, 5 deletions
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<SourceLocation> findCommentsInLine(quint32 line, bool includePrevious=false) const;
+ QList<SourceLocation> 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);