Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===-- SBDeclaration.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_SBDECLARATION_H
0011 #define LLDB_API_SBDECLARATION_H
0012 
0013 #include "lldb/API/SBDefines.h"
0014 #include "lldb/API/SBFileSpec.h"
0015 
0016 namespace lldb {
0017 
0018 class LLDB_API SBDeclaration {
0019 public:
0020   SBDeclaration();
0021 
0022   SBDeclaration(const lldb::SBDeclaration &rhs);
0023 
0024   ~SBDeclaration();
0025 
0026   const lldb::SBDeclaration &operator=(const lldb::SBDeclaration &rhs);
0027 
0028   explicit operator bool() const;
0029 
0030   bool IsValid() const;
0031 
0032   lldb::SBFileSpec GetFileSpec() const;
0033 
0034   uint32_t GetLine() const;
0035 
0036   uint32_t GetColumn() const;
0037 
0038   void SetFileSpec(lldb::SBFileSpec filespec);
0039 
0040   void SetLine(uint32_t line);
0041 
0042   void SetColumn(uint32_t column);
0043 
0044   bool operator==(const lldb::SBDeclaration &rhs) const;
0045 
0046   bool operator!=(const lldb::SBDeclaration &rhs) const;
0047 
0048   bool GetDescription(lldb::SBStream &description);
0049 
0050 protected:
0051   lldb_private::Declaration *get();
0052 
0053 private:
0054   friend class SBValue;
0055 
0056   const lldb_private::Declaration *operator->() const;
0057 
0058   lldb_private::Declaration &ref();
0059 
0060   const lldb_private::Declaration &ref() const;
0061 
0062   SBDeclaration(const lldb_private::Declaration *lldb_object_ptr);
0063 
0064   void SetDeclaration(const lldb_private::Declaration &lldb_object_ref);
0065 
0066   std::unique_ptr<lldb_private::Declaration> m_opaque_up;
0067 };
0068 
0069 } // namespace lldb
0070 
0071 #endif // LLDB_API_SBDECLARATION_H