Is Microsoft's clang add-on for Visual Studio 2015 (CodeGen) supported for compiling Qt applications? (With Qt 5.8?)

I tried (qmake -tp vc, change settings to CodeGen etc) but didn't get far; the very first source file failed to compile with:


1> In file included from ..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qbasicatomic.h:57: 1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qatomic_msvc.h(130,10): warning : unknown pragma ignored [-Wunknown-pragmas]
1>  # pragma intrinsic (_InterlockedIncrement)
1>           ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qatomic_msvc.h(131,10): warning : unknown pragma ignored [-Wunknown-pragmas]
1>  # pragma intrinsic (_InterlockedDecrement)
1>           ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qatomic_msvc.h(132,10): warning : unknown pragma ignored [-Wunknown-pragmas]
1>  # pragma intrinsic (_InterlockedExchange)
1>           ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qatomic_msvc.h(133,10): warning : unknown pragma ignored [-Wunknown-pragmas]
1>  # pragma intrinsic (_InterlockedCompareExchange)
1>           ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qatomic_msvc.h(134,10): warning : unknown pragma ignored [-Wunknown-pragmas]
1>  # pragma intrinsic (_InterlockedExchangeAdd)
1>           ^

...
1> In file included from ..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore\QObject:1: 1> In file included from ..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qobject.h:46: 1> In file included from ..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qobjectdefs.h:48: 1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qnamespace.h(107,32): error : enumerator value evaluates to 4261412864, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
1>          KeyboardModifierMask = 0xfe000000
1>                                 ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qnamespace.h(163,28): error : enumerator value evaluates to 4294967295, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
1>          MouseButtonMask  = 0xffffffff
1>                             ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qnamespace.h(304,38): error : enumerator value evaluates to 2147483648, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
1>          WindowFullscreenButtonHint = 0x80000000
1>                                       ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qnamespace.h(1343,26): error : enumerator value evaluates to 2147483648, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
1>          ImPlatformData = 0x80000000,
1>                           ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qnamespace.h(1346,22): error : enumerator value evaluates to 4294967295, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
1>          ImQueryAll = 0xffffffff
1>                       ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qnamespace.h(1377,33): error : enumerator value evaluates to 4294901760, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
1>          ImhExclusiveInputMask = 0xffff0000
1>                                  ^
1>..\..\..\..\qt\Qt5.8.0\5.8\msvc2015\include\QtCore/qnamespace.h(1594,29): error : enumerator value evaluates to 4294967295, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
1>          LastGestureType   = ~0u
1>                              ^
1>  5 warnings and 7 errors generated.


I'm compiling for 32-bit.


thanks


Hamish

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to