[Qt-creator] Sanitizer integration

Christian Gagneraud chgans at gmail.com
Fri Jun 28 02:01:33 CEST 2019

Hi there,

I recently gave a try at sanitzers
(https://github.com/google/sanitizers), and it's pretty awesome.
Most (all?) problems are reported in the same format as compiler
diagnostics, some come with complementary report that looks very
similar to valgrind ones.
enabling sanitizer is normally as simple as adding eg
-fsanitize=address,undefined to compiler and linker flags ("undefined"
stands for undefined behaviour sanitizer).

Would be nice to have this integrated into the "Analyze" framework, so
that when i run my instrumented app, i get a nice sanitizer issue view
of the "debug" mode. with source location lookup.
The only problem, i met so far, was source location points to inline
code in system header, with no stack trace. sometimes stack trace are
reported, so it would be nice to have a view similar to the debugger

Has anyone thought about this?
It shouldn't be that hard (tm)


More information about the Qt-creator mailing list