From 26ede92f8424c233f14e5feb54497140f3f93c7d Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 9 Dec 2022 19:35:59 +0900 Subject: [PATCH] lib: cpp: Rename CONFIG_EXCEPTIONS to CONFIG_CPP_EXCEPTIONS `CONFIG_EXCEPTIONS` is ambiguous in that the word "exception" may be used to refer to many different types of exceptions, from the hardware generated faults and interrupts (aka. exceptions) to the C++ exceptions. This commit renames the Kconfig `CONFIG_EXCEPTIONS` symbol to `CONFIG_CPP_EXCEPTIONS` in order to clarify that the symbol refers to the C++ exceptions and eliminate any ambiguity, and deprecates the old `CONFIG_EXCEPTIONS` symbol. Signed-off-by: Stephanos Ioannidis --- lib/cpp/Kconfig | 2 +- lib/cpp/Kconfig.deprecated | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/cpp/Kconfig b/lib/cpp/Kconfig index 4ab035c6f8c..b7e5fc6c6d4 100644 --- a/lib/cpp/Kconfig +++ b/lib/cpp/Kconfig @@ -75,7 +75,7 @@ config LIB_CPLUSPLUS if LIB_CPLUSPLUS -config EXCEPTIONS +config CPP_EXCEPTIONS bool "C++ exceptions support" depends on !NEWLIB_LIBC_NANO help diff --git a/lib/cpp/Kconfig.deprecated b/lib/cpp/Kconfig.deprecated index 65f56e73b95..c5f9e152039 100644 --- a/lib/cpp/Kconfig.deprecated +++ b/lib/cpp/Kconfig.deprecated @@ -12,4 +12,18 @@ config CPLUSPLUS [DEPRECATED] Select CPP instead. +if LIB_CPLUSPLUS + +config EXCEPTIONS + bool "[DEPRECATED] C++ exceptions support" + depends on !NEWLIB_LIBC_NANO + select CPP_EXCEPTIONS + select DEPRECATED + help + This option enables support of C++ exceptions. + + [DEPRECATED] Select CPP_EXCEPTIONS instead. + +endif # LIB_CPLUSPLUS + endmenu