Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:43

0001 //===-- SBTypeSynthetic.h -----------------------------------------*- C++
0002 //-*-===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef LLDB_API_SBTYPESYNTHETIC_H
0011 #define LLDB_API_SBTYPESYNTHETIC_H
0012 
0013 #include "lldb/API/SBDefines.h"
0014 
0015 namespace lldb {
0016 
0017 class LLDB_API SBTypeSynthetic {
0018 public:
0019   SBTypeSynthetic();
0020 
0021   static SBTypeSynthetic
0022   CreateWithClassName(const char *data,
0023                       uint32_t options = 0); // see lldb::eTypeOption values
0024 
0025   static SBTypeSynthetic
0026   CreateWithScriptCode(const char *data,
0027                        uint32_t options = 0); // see lldb::eTypeOption values
0028 
0029   SBTypeSynthetic(const lldb::SBTypeSynthetic &rhs);
0030 
0031   ~SBTypeSynthetic();
0032 
0033   explicit operator bool() const;
0034 
0035   bool IsValid() const;
0036 
0037   bool IsClassCode();
0038 
0039   bool IsClassName();
0040 
0041   const char *GetData();
0042 
0043   void SetClassName(const char *data);
0044 
0045   void SetClassCode(const char *data);
0046 
0047   uint32_t GetOptions();
0048 
0049   void SetOptions(uint32_t);
0050 
0051   bool GetDescription(lldb::SBStream &description,
0052                       lldb::DescriptionLevel description_level);
0053 
0054   lldb::SBTypeSynthetic &operator=(const lldb::SBTypeSynthetic &rhs);
0055 
0056   bool IsEqualTo(lldb::SBTypeSynthetic &rhs);
0057 
0058   bool operator==(lldb::SBTypeSynthetic &rhs);
0059 
0060   bool operator!=(lldb::SBTypeSynthetic &rhs);
0061 
0062 protected:
0063   friend class SBDebugger;
0064   friend class SBTypeCategory;
0065   friend class SBValue;
0066 
0067   lldb::ScriptedSyntheticChildrenSP GetSP();
0068 
0069   void SetSP(const lldb::ScriptedSyntheticChildrenSP &typefilter_impl_sp);
0070 
0071   lldb::ScriptedSyntheticChildrenSP m_opaque_sp;
0072 
0073   SBTypeSynthetic(const lldb::ScriptedSyntheticChildrenSP &);
0074 
0075   bool CopyOnWrite_Impl();
0076 };
0077 
0078 } // namespace lldb
0079 
0080 #endif // LLDB_API_SBTYPESYNTHETIC_H