Clang: substitute __float128 with short instead of void

There is an argument of this type in std_abs.h. void argument is invalid.

Replacing with float, double or long double causes an error in type_traits,
which has template specializations for __is_floating_point_helper for all
these types.

Change-Id: Ife95fa992cbf9684bc67a2098d6609a9a925d015
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Orgad Shaneh
2017-06-15 21:56:42 +03:00
committed by Orgad Shaneh
parent 1df1745c63
commit b89888ca9d

View File

@@ -392,7 +392,7 @@ void CompilerOptionsBuilder::addDefineFloat128ForMingw()
// TODO: Remove once this is fixed in clang >= 3.9.
// https://llvm.org/bugs/show_bug.cgi?id=30685
if (m_projectPart.toolchainType == ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID)
addDefine("#define __float128 void");
addDefine("#define __float128 short");
}
QString CompilerOptionsBuilder::includeDirOption() const