[Lldb-commits] [lldb] [lldb] Add missing include to SBLanguages.h (PR #111763)

via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 9 14:35:33 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Chelsea Cassanova (chelcassanova)

<details>
<summary>Changes</summary>

SBLanguages.h uses a uint16_t but is missing the include for `<cstdint>`, if any file includes this without including that it will cause a build error so this commit adds this include.

---
Full diff: https://github.com/llvm/llvm-project/pull/111763.diff


1 Files Affected:

- (modified) lldb/scripts/generate-sbapi-dwarf-enum.py (+2) 


``````````diff
diff --git a/lldb/scripts/generate-sbapi-dwarf-enum.py b/lldb/scripts/generate-sbapi-dwarf-enum.py
index 7fd6037986317e..689c7f81bfda01 100755
--- a/lldb/scripts/generate-sbapi-dwarf-enum.py
+++ b/lldb/scripts/generate-sbapi-dwarf-enum.py
@@ -16,6 +16,8 @@
 #ifndef LLDB_API_SBLANGUAGE_H
 #define LLDB_API_SBLANGUAGE_H
 
+#include <cstdint>
+
 namespace lldb {
 /// Used by \\ref SBExpressionOptions.
 /// These enumerations use the same language enumerations as the DWARF

``````````

</details>


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


More information about the lldb-commits mailing list