Provides AddressSanitizer support. More...
- detectUseAfterReturn : string
- detectUseAfterScope : bool
- enabled : bool
Provides support for the AddressSanitizer tool, which uses compiler instrumentation to detect memory corruption bugs at runtime.
detectUseAfterReturn : string
Controls whether support for detecting problems with stack use after returning from a function should be built into the application.
The possible values are:
"always": Check for this type of problem unconditionally.
"runtime": Build with this capability, but only do the respective checks if they are explicitly requested at runtime.
"never": Do not build with support for this check.
Note: Only the clang compiler (starting at 13.0) supports the full set of values. With GCC and MSVC, "runtime" maps to "always".
detectUseAfterScope : bool
Controls whether to detect bugs relating the use of variables after they've gone out of scope.
Note: This property has no effect when building with with GCC and MSVC.
enabled : bool
Controls whether to enable AddressSanitizer.
Note: You do not need to check if the current toolchain supports AddressSanitizer: If Qbs detects that it doesn't, this property has no effect.
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.