[Lldb-commits] [lldb] [lldb] Add SB API to access static constexpr member values (PR #89730)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 23 04:45:00 PDT 2024


================
@@ -107,6 +107,35 @@ class SBTypeMemberFunction {
   lldb::TypeMemberFunctionImplSP m_opaque_sp;
 };
 
+class LLDB_API SBTypeStaticField {
+public:
+  SBTypeStaticField();
+
+  SBTypeStaticField(const lldb::SBTypeStaticField &rhs);
+  lldb::SBTypeStaticField &operator=(const lldb::SBTypeStaticField &rhs);
+
+  ~SBTypeStaticField();
+
+  explicit operator bool() const;
+
+  bool IsValid() const;
+
+  const char *GetName();
+
+  const char *GetMangledName();
+
+  lldb::SBType GetType();
+
+  lldb::SBValue GetConstantValue(lldb::SBTarget target);
+
+protected:
+  friend class SBType;
+
+  SBTypeStaticField(lldb_private::CompilerDecl decl);
----------------
labath wrote:

No, I did not. One could say it was implicitly implicit. :P

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


More information about the lldb-commits mailing list