From 45ba8d578730a1d9d689f456c06ae1d89000c23c Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 9 Dec 2022 19:59:47 +0900 Subject: [PATCH] lib: cpp: Rename CONFIG_RTTI to CONFIG_CPP_RTTI The Kconfig `CONFIG_RTTI` symbol enables the C++ Run-Time Type Information (RTTI) support and is a feature of the standard C++ library; therefore, it should be prefixed with `CPP_` as with the rest of the C++-specific symbols. This commit renames the Kconfig `CONFIG_RTTI` symbol to `CONFIG_CPP_RTTI` in order to better align with the other existing C++ Kconfig symbols, and deprecates the old `CONFIG_RTTI` symbol. Signed-off-by: Stephanos Ioannidis --- lib/cpp/Kconfig | 2 +- lib/cpp/Kconfig.deprecated | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/cpp/Kconfig b/lib/cpp/Kconfig index b7e5fc6c6d4..da2d96ee2c4 100644 --- a/lib/cpp/Kconfig +++ b/lib/cpp/Kconfig @@ -81,7 +81,7 @@ config CPP_EXCEPTIONS help This option enables support of C++ exceptions. -config RTTI +config CPP_RTTI bool "C++ RTTI support" help This option enables support of C++ RTTI. diff --git a/lib/cpp/Kconfig.deprecated b/lib/cpp/Kconfig.deprecated index c5f9e152039..e52a40caf46 100644 --- a/lib/cpp/Kconfig.deprecated +++ b/lib/cpp/Kconfig.deprecated @@ -24,6 +24,15 @@ config EXCEPTIONS [DEPRECATED] Select CPP_EXCEPTIONS instead. +config RTTI + bool "[DEPRECATED] C++ RTTI support" + select CPP_RTTI + select DEPRECATED + help + This option enables support of C++ RTTI. + + [DEPRECATED] Select CPP_RTTI instead. + endif # LIB_CPLUSPLUS endmenu