Disable Clang warning for 'using namespace' in qtextstream.h
This header file intentionally puts a 'using namespace' into the global namespace, the artful cleverness of which Clang doesn't properly appreciate. Teach Clang a lesson by disabling the warning. Change-Id: I9754ac5fc9d4c53654854082e1145d8b5fef186d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>bb10
parent
43f64b4dc8
commit
bafb8220b4
|
|
@ -279,9 +279,12 @@ namespace Qt {
|
|||
using namespace QTextStreamFunctions;
|
||||
}
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_CLANG("-Wheader-hygiene")
|
||||
// We use 'using namespace' as that doesn't cause
|
||||
// conflicting definitions compiler errors.
|
||||
using namespace QTextStreamFunctions;
|
||||
QT_WARNING_POP
|
||||
#endif // QT_VERSION < QT_VERSION_CHECK(6, 0, 0) && !defined(Q_QDOC)
|
||||
|
||||
inline QTextStreamManipulator qSetFieldWidth(int width)
|
||||
|
|
|
|||
Loading…
Reference in New Issue