From 5c4c355ba77c2ab2b9e19c146b26d50fb1aa642e Mon Sep 17 00:00:00 2001 From: FeignClaims Date: Fri, 4 Oct 2024 21:23:41 +0800 Subject: [PATCH] docs: UNDEFINED_BEHAVIOR -> UNDEFINED --- README.md | 4 ++-- docs/src/project_options_example.md | 4 ++-- src/Index.cmake | 2 +- src/Sanitizers.cmake | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b70683b9..e59bc804 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ if(FEATURE_TESTS) set(ENABLE_COVERAGE "ENABLE_COVERAGE") set(ENABLE_SANITIZER_ADDRESS "ENABLE_SANITIZER_ADDRESS") - set(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR "ENABLE_SANITIZER_UNDEFINED_BEHAVIOR") + set(ENABLE_SANITIZER_UNDEFINED "ENABLE_SANITIZER_UNDEFINED") endif() # Enable doxgen for the docs @@ -123,7 +123,7 @@ project_options( ${ENABLE_DOXYGEN} ${ENABLE_COVERAGE} ${ENABLE_SANITIZER_ADDRESS} - ${ENABLE_SANITIZER_UNDEFINED_BEHAVIOR} + ${ENABLE_SANITIZER_UNDEFINED} # ${ENABLE_SANITIZER_THREAD} # ${ENABLE_SANITIZER_MEMORY} # ENABLE_SANITIZER_POINTER_COMPARE diff --git a/docs/src/project_options_example.md b/docs/src/project_options_example.md index 124654eb..384d287d 100644 --- a/docs/src/project_options_example.md +++ b/docs/src/project_options_example.md @@ -54,7 +54,7 @@ if(FEATURE_TESTS) set(ENABLE_COVERAGE "ENABLE_COVERAGE") set(ENABLE_SANITIZER_ADDRESS "ENABLE_SANITIZER_ADDRESS") - set(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR "ENABLE_SANITIZER_UNDEFINED_BEHAVIOR") + set(ENABLE_SANITIZER_UNDEFINED "ENABLE_SANITIZER_UNDEFINED") endif() # Enable doxgen for the docs @@ -76,7 +76,7 @@ project_options( ${ENABLE_DOXYGEN} ${ENABLE_COVERAGE} ${ENABLE_SANITIZER_ADDRESS} - ${ENABLE_SANITIZER_UNDEFINED_BEHAVIOR} + ${ENABLE_SANITIZER_UNDEFINED} # ${ENABLE_SANITIZER_THREAD} # ${ENABLE_SANITIZER_MEMORY} # ENABLE_SANITIZER_POINTER_COMPARE diff --git a/src/Index.cmake b/src/Index.cmake index f4544398..ec115f28 100644 --- a/src/Index.cmake +++ b/src/Index.cmake @@ -82,7 +82,7 @@ include("${ProjectOptions_SRC_DIR}/Vcpkg.cmake") those. - ``ENABLE_SANITIZER_ADDRESS``: Enable address sanitizer - ``ENABLE_SANITIZER_LEAK``: Enable leak sanitizer -- ``ENABLE_SANITIZER_UNDEFINED_BEHAVIOR``: Enable undefined behavior +- ``ENABLE_SANITIZER_UNDEFINED``: Enable undefined behavior sanitizer - ``ENABLE_SANITIZER_THREAD``: Enable thread sanitizer - ``ENABLE_SANITIZER_MEMORY``: Enable memory sanitizer diff --git a/src/Sanitizers.cmake b/src/Sanitizers.cmake index 6ca0e905..6ee84cc8 100644 --- a/src/Sanitizers.cmake +++ b/src/Sanitizers.cmake @@ -137,7 +137,7 @@ Note that some sanitizers cannot be enabled together, and this function doesn't Output variables: - ``ENABLE_SANITIZER_ADDRESS``: Address sanitizer is supported -- ``ENABLE_SANITIZER_UNDEFINED_BEHAVIOR``: Undefined behavior sanitizer is supported +- ``ENABLE_SANITIZER_UNDEFINED``: Undefined behavior sanitizer is supported - ``ENABLE_SANITIZER_LEAK``: Leak sanitizer is supported - ``ENABLE_SANITIZER_THREAD``: Thread sanitizer is supported - ``ENABLE_SANITIZER_MEMORY``: Memory sanitizer is supported @@ -148,7 +148,7 @@ Output variables: .. code:: cmake check_sanitizers_support(ENABLE_SANITIZER_ADDRESS - ENABLE_SANITIZER_UNDEFINED_BEHAVIOR + ENABLE_SANITIZER_UNDEFINED ENABLE_SANITIZER_LEAK ENABLE_SANITIZER_THREAD ENABLE_SANITIZER_MEMORY