[clang] [clang] Mark some language options as benign. (PR #131569)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 00:52:33 PDT 2025
================
@@ -139,18 +139,18 @@ ENUM_LANGOPT(AltivecSrcCompat, AltivecSrcCompatKind, 2,
LANGOPT(ConvergentFunctions, 1, 1, "Assume convergent functions")
LANGOPT(AltiVec , 1, 0, "AltiVec-style vector initializers")
LANGOPT(ZVector , 1, 0, "System z vector extensions")
-LANGOPT(Exceptions , 1, 0, "exception handling")
-LANGOPT(ObjCExceptions , 1, 0, "Objective-C exceptions")
-LANGOPT(CXXExceptions , 1, 0, "C++ exceptions")
+COMPATIBLE_LANGOPT(Exceptions , 1, 0, "exception handling")
+COMPATIBLE_LANGOPT(ObjCExceptions , 1, 0, "Objective-C exceptions")
+COMPATIBLE_LANGOPT(CXXExceptions , 1, 0, "C++ exceptions")
LANGOPT(EHAsynch , 1, 0, "C/C++ EH Asynch exceptions")
ENUM_LANGOPT(ExceptionHandling, ExceptionHandlingKind, 3,
ExceptionHandlingKind::None, "exception handling")
LANGOPT(IgnoreExceptions , 1, 0, "ignore exceptions")
LANGOPT(ExternCNoUnwind , 1, 0, "Assume extern C functions don't unwind")
LANGOPT(AssumeNothrowExceptionDtor , 1, 0, "Assume exception object's destructor is nothrow")
LANGOPT(TraditionalCPP , 1, 0, "traditional CPP emulation")
-LANGOPT(RTTI , 1, 1, "run-time type information")
-LANGOPT(RTTIData , 1, 1, "emit run-time type information data")
+BENIGN_LANGOPT(RTTI , 1, 1, "run-time type information")
+BENIGN_LANGOPT(RTTIData , 1, 1, "emit run-time type information data")
----------------
cor3ntin wrote:
There is a `__cpp_rtti` macro so this can be observed in the ast
https://github.com/llvm/llvm-project/pull/131569
More information about the cfe-commits
mailing list