qmlformat: Fix whitespace for parameter defaults
Change-Id: I7958bf1546cc5854fc9b9856e36928ea932af0ca Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
6f1618e138
commit
7d21113b05
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue