[Lldb-commits] [clang] [lldb] [llvm] [mlir] [Support] Validate number of arguments passed to formatv() (PR #105745)
    Mehdi Amini via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Wed Aug 28 13:45:35 PDT 2024
    
    
  
================
@@ -143,15 +140,76 @@ formatv_object_base::splitLiteralAndReplacement(StringRef Fmt) {
   return std::make_pair(ReplacementItem{Fmt}, StringRef());
 }
 
+#ifndef NDEBUG
+#define ENABLE_VALIDATION 1
+#else
+#define ENABLE_VALIDATION 1 // Convienently enable validation in release mode.
----------------
joker-eph wrote:
```suggestion
#define ENABLE_VALIDATION 1 // Conveniently enable validation in release mode.
```
(typo)
https://github.com/llvm/llvm-project/pull/105745
    
    
More information about the lldb-commits
mailing list