diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlformat/commentastvisitor.h | 2 | ||||
-rw-r--r-- | tools/qmlformat/dumpastvisitor.h | 8 |
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); |