Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===-- SBSymbolContextList.h -----------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_API_SBSYMBOLCONTEXTLIST_H
0010 #define LLDB_API_SBSYMBOLCONTEXTLIST_H
0011 
0012 #include "lldb/API/SBDefines.h"
0013 #include "lldb/API/SBSymbolContext.h"
0014 
0015 namespace lldb {
0016 
0017 class LLDB_API SBSymbolContextList {
0018 public:
0019   SBSymbolContextList();
0020 
0021   SBSymbolContextList(const lldb::SBSymbolContextList &rhs);
0022 
0023   ~SBSymbolContextList();
0024 
0025   const lldb::SBSymbolContextList &
0026   operator=(const lldb::SBSymbolContextList &rhs);
0027 
0028   explicit operator bool() const;
0029 
0030   bool IsValid() const;
0031 
0032   uint32_t GetSize() const;
0033 
0034   lldb::SBSymbolContext GetContextAtIndex(uint32_t idx);
0035 
0036   bool GetDescription(lldb::SBStream &description);
0037 
0038   void Append(lldb::SBSymbolContext &sc);
0039 
0040   void Append(lldb::SBSymbolContextList &sc_list);
0041 
0042   void Clear();
0043 
0044 protected:
0045   friend class SBModule;
0046   friend class SBTarget;
0047   friend class SBCompileUnit;
0048 
0049   lldb_private::SymbolContextList *operator->() const;
0050 
0051   lldb_private::SymbolContextList &operator*() const;
0052 
0053 private:
0054   std::unique_ptr<lldb_private::SymbolContextList> m_opaque_up;
0055 };
0056 
0057 } // namespace lldb
0058 
0059 #endif // LLDB_API_SBSYMBOLCONTEXTLIST_H