[clang] [llvm] [clang][LLVM Demangler] Add an assertion that validates that all mang… (PR #111391)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 02:54:04 PDT 2024


================
@@ -462,6 +462,9 @@ ENUM_CODEGENOPT(ZeroCallUsedRegs, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind,
 /// non-deleting destructors. (No effect on Microsoft ABI.)
 CODEGENOPT(CtorDtorReturnThis, 1, 0)
 
+/// Whether to validate if a produced mangled name can be demangled with LLVM demangler.
+CODEGENOPT(NoDemanglingFailures, 1, 0)
----------------
erichkeane wrote:

I mean the name.  We shouldn't have a true/false flag where the 'true' isn't "turn this thing on".  So this should be `DemanglingFailures`.

https://github.com/llvm/llvm-project/pull/111391


More information about the cfe-commits mailing list