summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2017-01-16 11:16:13 +0100
committerMartin Smith <martin.smith@qt.io>2017-12-04 19:11:36 +0000
commite6aae7df049ab034849c91d944b16f468bf21e40 (patch)
tree61f56f5f7567cf20d5edea01115b5ccd28238d74
parent5e0ef2defdb543aeef657c14aa0a65b395016e4d (diff)
doc: Fix all qdoc errors in qnumeric_p.h
These errors resulted from clang parsing function declarations for functions that were not meant to be documented. Here they are hidden from clang with #ifndef Q_CLANG_QDOC Change-Id: I256b49830b63188bf0a685cb393d469f2f2ca315 Reviewed-by: Martin Smith <martin.smith@qt.io>
-rw-r--r--src/corelib/global/qnumeric_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/global/qnumeric_p.h b/src/corelib/global/qnumeric_p.h
index 37eddfa9b5..dd249f8cc8 100644
--- a/src/corelib/global/qnumeric_p.h
+++ b/src/corelib/global/qnumeric_p.h
@@ -163,6 +163,7 @@ Q_DECL_CONST_FUNCTION static inline bool qt_is_finite(float f)
return qnumeric_std_wrapper::isfinite(f);
}
+#ifndef Q_CLANG_QDOC
//
// Unsigned overflow math
//
@@ -355,7 +356,7 @@ inline bool mul_overflow(int v1, int v2, int *r)
return t > std::numeric_limits<int>::max() || t < std::numeric_limits<int>::min();
}
#endif
-
+#endif // Q_CLANG_QDOC
}
QT_END_NAMESPACE