QLogging: mark all warning() and critical() functions as cold
Previously, only the printf-style overloads were marked as such. Saves ~7KB in QtCore text size on Linux AMD64 GCC 11 C++ 20 builds. Change-Id: I4ed480e48060b87968f3d15bb5a84bdbcf70a647 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
1f7f8c35c4
commit
20ab12d181
@ -136,11 +136,17 @@ public:
|
||||
QDebug info() const;
|
||||
QDebug info(const QLoggingCategory &cat) const;
|
||||
QDebug info(CategoryFunction catFunc) const;
|
||||
Q_DECL_COLD_FUNCTION
|
||||
QDebug warning() const;
|
||||
Q_DECL_COLD_FUNCTION
|
||||
QDebug warning(const QLoggingCategory &cat) const;
|
||||
Q_DECL_COLD_FUNCTION
|
||||
QDebug warning(CategoryFunction catFunc) const;
|
||||
Q_DECL_COLD_FUNCTION
|
||||
QDebug critical() const;
|
||||
Q_DECL_COLD_FUNCTION
|
||||
QDebug critical(const QLoggingCategory &cat) const;
|
||||
Q_DECL_COLD_FUNCTION
|
||||
QDebug critical(CategoryFunction catFunc) const;
|
||||
|
||||
QNoDebug noDebug() const noexcept;
|
||||
|
Loading…
Reference in New Issue
Block a user