forked from qt-creator/qt-creator
Make some qHash and comparison operators overloads hidden friends
Restricts lookup scope more to necessary bits. Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -57,6 +57,9 @@ public:
|
||||
bool isValid() const;
|
||||
QIcon icon() const;
|
||||
|
||||
friend bool operator==(const Diagnostic &lhs, const Diagnostic &rhs);
|
||||
friend Utils::QHashValueType qHash(const Diagnostic &diagnostic);
|
||||
|
||||
QString name;
|
||||
QString description;
|
||||
QString category;
|
||||
@@ -66,12 +69,8 @@ public:
|
||||
bool hasFixits = false;
|
||||
};
|
||||
|
||||
bool operator==(const Diagnostic &lhs, const Diagnostic &rhs);
|
||||
|
||||
using Diagnostics = QList<Diagnostic>;
|
||||
|
||||
Utils::QHashValueType qHash(const Diagnostic &diagnostic);
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ClangTools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user