summaryrefslogtreecommitdiffstats
path: root/src/qdoc/parameters.h
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-12-17 06:44:19 +0100
committerPaul Wicking <paul.wicking@qt.io>2019-12-17 09:08:20 +0100
commited6658c2c82e2d91f34d57e88b61648fb301baf4 (patch)
treebf1c298dd4b59acb55f3f3921c6b9edac407192c /src/qdoc/parameters.h
parent9f13c865439c024364f999680ceceb296d9daeb2 (diff)
clang-format QDoc
This patch is the result of formatting all of QDoc's source with clang-format. The clang-format style is from the qt5 super repo's _clang-format definition. The purpose is unify the style across the code, to avoid spending too much time on style related issues in reviews and cleanup patches. Future changes to QDoc can benefit from using git-clang-format in combination with the git commit hook provided in qtrepotools.git as mentioned in this email to the dev list: https://lists.qt-project.org/pipermail/development/2019-October/037682.html Change-Id: I8af6a051c8334b5f35862a4dcd3becce8ac500c2 Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/parameters.h')
-rw-r--r--src/qdoc/parameters.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/src/qdoc/parameters.h b/src/qdoc/parameters.h
index 7e72d1689..e049fed51 100644
--- a/src/qdoc/parameters.h
+++ b/src/qdoc/parameters.h
@@ -43,10 +43,11 @@ class Parameter
{
public:
Parameter() {}
- Parameter(const QString &type,
- const QString &name = QString(),
+ Parameter(const QString &type, const QString &name = QString(),
const QString &defaultValue = QString())
- : type_(type), name_(name), defaultValue_(defaultValue) { }
+ : type_(type), name_(name), defaultValue_(defaultValue)
+ {
+ }
void setName(const QString &name) { name_ = name; }
bool hasType() const { return !type_.isEmpty(); }
@@ -55,12 +56,18 @@ public:
const QString &defaultValue() const { return defaultValue_; }
void setDefaultValue(const QString &t) { defaultValue_ = t; }
- void set(const QString &type, const QString &name) {
- type_ = type; name_ = name; defaultValue_.clear();
+ void set(const QString &type, const QString &name)
+ {
+ type_ = type;
+ name_ = name;
+ defaultValue_.clear();
}
- void set(const QString &type, const QString &name, const QString &defaultValue) {
- type_ = type; name_ = name; defaultValue_ = defaultValue;
+ void set(const QString &type, const QString &name, const QString &defaultValue)
+ {
+ type_ = type;
+ name_ = name;
+ defaultValue_ = defaultValue;
}
QString signature(bool includeValue = false) const;
@@ -79,7 +86,12 @@ public:
Parameters();
Parameters(const QString &signature);
- void clear() { parameters_.clear(); privateSignal_ = false; valid_ = true; }
+ void clear()
+ {
+ parameters_.clear();
+ privateSignal_ = false;
+ valid_ = true;
+ }
const ParameterVector &parameters() const { return parameters_; }
bool isPrivateSignal() const { return privateSignal_; }
bool isEmpty() const { return parameters_.isEmpty(); }