Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===-- SBFileSpecList.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_SBFILESPECLIST_H
0011 #define LLDB_API_SBFILESPECLIST_H
0012 
0013 #include "lldb/API/SBDefines.h"
0014 
0015 namespace lldb {
0016 
0017 class LLDB_API SBFileSpecList {
0018 public:
0019   SBFileSpecList();
0020 
0021   SBFileSpecList(const lldb::SBFileSpecList &rhs);
0022 
0023   ~SBFileSpecList();
0024 
0025   const SBFileSpecList &operator=(const lldb::SBFileSpecList &rhs);
0026 
0027   uint32_t GetSize() const;
0028 
0029   bool GetDescription(SBStream &description) const;
0030 
0031   void Append(const SBFileSpec &sb_file);
0032 
0033   bool AppendIfUnique(const SBFileSpec &sb_file);
0034 
0035   void Clear();
0036 
0037   uint32_t FindFileIndex(uint32_t idx, const SBFileSpec &sb_file, bool full);
0038 
0039   const SBFileSpec GetFileSpecAtIndex(uint32_t idx) const;
0040 
0041 private:
0042   friend class SBTarget;
0043 
0044   const lldb_private::FileSpecList *operator->() const;
0045 
0046   const lldb_private::FileSpecList *get() const;
0047 
0048   const lldb_private::FileSpecList &operator*() const;
0049 
0050   const lldb_private::FileSpecList &ref() const;
0051 
0052   std::unique_ptr<lldb_private::FileSpecList> m_opaque_up;
0053 };
0054 
0055 } // namespace lldb
0056 
0057 #endif // LLDB_API_SBFILESPECLIST_H