[Qt-creator] Use clang UBSan with QtC

Konstantin Tokarev annulen at yandex.ru
Sat Jun 4 18:39:23 CEST 2016



04.06.2016, 19:27, "Denis Shienkov" <denis.shienkov at gmail.com>:
> Hi all,
>
> 1) is it possible to use the clang's UBSan with QtC? :)

Why not?

>
> 2) if yes - then how to do it?

As with other sanitizers, just add -fsanitize=undefined to QMAKE_CXXFLAGS and QMAKE_LFLAGS

>
> 3) if yes - is it possible to use on Windows?

http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#supported-platforms


>
> BR,
>
> Denis
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

-- 
Regards,
Konstantin



More information about the Qt-creator mailing list