-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More warnings #39
Comments
Agreed! |
Should behave the same as in gcc, so according to https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html We should maybe also add And what about |
I agree to add all your suggestions. |
Unfortunately
See also http://clang.llvm.org/docs/AddressSanitizer.html#platforms and http://clang.llvm.org/docs/LeakSanitizer.html |
As the documentation (address, undefined behaviour) states, there is no run-time performance impact of ubsan, but asan gives a ~2x slowdown.
|
I decided to add sanitizers directly to the debug build on PR #99. This can easily be changed later, if we feel that there should be a separate build type. |
I think the following flags should be added to the defaults:
see https://clang.llvm.org/docs/AddressSanitizer.html
and also
seem useful flags for writing clean code. The first one can help identify illegal access mistakes and the second one can help finding shadowing bugs like in e.g. nested loops where the loop variables are shadowed in one of the inner loops.
The text was updated successfully, but these errors were encountered: