Warning, /graphics/kst-plot/cmake/modules/Clang-sanitize.cmake is written in an unsupported language. File is not indexed.

0001 # http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation
0002 
0003 list(APPEND clflg -fno-omit-frame-pointer)
0004 list(APPEND clflg -fno-optimize-sibling-calls)
0005 
0006 list(APPEND clflg -fsanitize=address)
0007 #list(APPEND clflg -fsanitize=init-order)
0008 #list(APPEND clflg -fsanitize=address-full)
0009 list(APPEND clflg -fsanitize=integer)
0010 
0011 #list(APPEND clflg -fsanitize=thread)
0012 #list(APPEND clflg -fsanitize=memory)
0013 #list(APPEND clflg -fsanitize=undefined) # Qt uses reinterpret_cast<T>(0)->staticMetaObject
0014 list(APPEND clflg -fsanitize=undefined-trap)
0015 #list(APPEND clflg -fsanitize=alignment)
0016 list(APPEND clflg -fsanitize=bool)
0017 list(APPEND clflg -fsanitize=bounds)
0018 list(APPEND clflg -fsanitize=enum)
0019 list(APPEND clflg -fsanitize=float-cast-overflow)
0020 list(APPEND clflg -fsanitize=float-divide-by-zero)
0021 list(APPEND clflg -fsanitize=integer-divide-by-zero)
0022 list(APPEND clflg -fsanitize=null)
0023 list(APPEND clflg -fsanitize=object-size)
0024 list(APPEND clflg -fsanitize=return)
0025 list(APPEND clflg -fsanitize=shift)
0026 list(APPEND clflg -fsanitize=signed-integer-overflow)
0027 list(APPEND clflg -fsanitize=unreachable)
0028 list(APPEND clflg -fsanitize=unsigned-integer-overflow)
0029 list(APPEND clflg -fsanitize=vla-bound)
0030 #list(APPEND clflg -fsanitize=vptr)
0031 #list(APPEND clflg -fsanitize=use-after-return)
0032 #list(APPEND clflg -fsanitize=use-after-scope)
0033 
0034 
0035 message(STATUS "Used sanitize flags:")
0036 set(clang_flags)
0037 foreach(it ${clflg})
0038     message(STATUS "    ${it}")
0039     set(clang_flags "${clang_flags} ${it}")
0040 endforeach()
0041 
0042