003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/include/lldb/Symbol
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
include
/
lldb
/
Symbol
/
📁
..
📄
ArmUnwindInfo.h
(2.11 KB)
📄
Block.h
(13.94 KB)
📄
CallFrameInfo.h
(879 B)
📄
CompactUnwindInfo.h
(7.08 KB)
📄
CompileUnit.h
(17.69 KB)
📄
CompilerDecl.h
(2.93 KB)
📄
CompilerDeclContext.h
(4.55 KB)
📄
CompilerType.h
(13.99 KB)
📄
DWARFCallFrameInfo.h
(6.16 KB)
📄
DebugMacros.h
(2.58 KB)
📄
DeclVendor.h
(2.25 KB)
📄
Declaration.h
(6.13 KB)
📄
FuncUnwinders.h
(6.25 KB)
📄
Function.h
(23.39 KB)
📄
LineEntry.h
(6.81 KB)
📄
LineTable.h
(12.44 KB)
📄
LocateSymbolFile.h
(2.11 KB)
📄
ObjectContainer.h
(6.54 KB)
📄
ObjectFile.h
(27.59 KB)
📄
PostfixExpression.h
(7.28 KB)
📄
SourceModule.h
(769 B)
📄
Symbol.h
(10.08 KB)
📄
SymbolContext.h
(17.49 KB)
📄
SymbolContextScope.h
(4.27 KB)
📄
SymbolFile.h
(12.88 KB)
📄
SymbolVendor.h
(2.14 KB)
📄
Symtab.h
(9.22 KB)
📄
TaggedASTType.h
(1.3 KB)
📄
Type.h
(15.09 KB)
📄
TypeList.h
(1.91 KB)
📄
TypeMap.h
(2.04 KB)
📄
TypeSystem.h
(20.54 KB)
📄
UnwindPlan.h
(18.46 KB)
📄
UnwindTable.h
(2.97 KB)
📄
Variable.h
(4.84 KB)
📄
VariableList.h
(2.88 KB)
Editing: CompilerDecl.h
//===-- CompilerDecl.h ------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLDB_SYMBOL_COMPILERDECL_H #define LLDB_SYMBOL_COMPILERDECL_H #include "lldb/Symbol/CompilerType.h" #include "lldb/Utility/ConstString.h" #include "lldb/lldb-private.h" namespace lldb_private { /// Represents a generic declaration such as a function declaration. /// /// This class serves as an abstraction for a declaration inside one of the /// TypeSystems implemented by the language plugins. It does not have any actual /// logic in it but only stores an opaque pointer and a pointer to the /// TypeSystem that gives meaning to this opaque pointer. All methods of this /// class should call their respective method in the TypeSystem interface and /// pass the opaque pointer along. /// /// \see lldb_private::TypeSystem class CompilerDecl { public: // Constructors and Destructors CompilerDecl() = default; /// Creates a CompilerDecl with the given TypeSystem and opaque pointer. /// /// This constructor should only be called from the respective TypeSystem /// implementation. CompilerDecl(TypeSystem *type_system, void *decl) : m_type_system(type_system), m_opaque_decl(decl) {} // Tests explicit operator bool() const { return IsValid(); } bool operator<(const CompilerDecl &rhs) const { if (m_type_system == rhs.m_type_system) return m_opaque_decl < rhs.m_opaque_decl; return m_type_system < rhs.m_type_system; } bool IsValid() const { return m_type_system != nullptr && m_opaque_decl != nullptr; } // Accessors TypeSystem *GetTypeSystem() const { return m_type_system; } void *GetOpaqueDecl() const { return m_opaque_decl; } void SetDecl(TypeSystem *type_system, void *decl) { m_type_system = type_system; m_opaque_decl = decl; } void Clear() { m_type_system = nullptr; m_opaque_decl = nullptr; } ConstString GetName() const; ConstString GetMangledName() const; CompilerDeclContext GetDeclContext() const; // If this decl represents a function, return the return type CompilerType GetFunctionReturnType() const; // If this decl represents a function, return the number of arguments for the // function size_t GetNumFunctionArguments() const; // If this decl represents a function, return the argument type given a zero // based argument index CompilerType GetFunctionArgumentType(size_t arg_idx) const; private: TypeSystem *m_type_system = nullptr; void *m_opaque_decl = nullptr; }; bool operator==(const CompilerDecl &lhs, const CompilerDecl &rhs); bool operator!=(const CompilerDecl &lhs, const CompilerDecl &rhs); } // namespace lldb_private #endif // LLDB_SYMBOL_COMPILERDECL_H
Upload File
Create Folder