LLDB  mainline
CompilerDecl.cpp
Go to the documentation of this file.
1 //===-- CompilerDecl.cpp --------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
11 #include "lldb/Symbol/TypeSystem.h"
12 
13 using namespace lldb_private;
14 
17 }
18 
21 }
22 
25 }
26 
29 }
30 
33 }
34 
37 }
38 
40  const lldb_private::CompilerDecl &rhs) {
41  return lhs.GetTypeSystem() == rhs.GetTypeSystem() &&
42  lhs.GetOpaqueDecl() == rhs.GetOpaqueDecl();
43 }
44 
46  const lldb_private::CompilerDecl &rhs) {
47  return lhs.GetTypeSystem() != rhs.GetTypeSystem() ||
48  lhs.GetOpaqueDecl() != rhs.GetOpaqueDecl();
49 }
lldb_private::TypeSystem::DeclGetFunctionNumArguments
virtual size_t DeclGetFunctionNumArguments(void *opaque_decl)
Definition: TypeSystem.cpp:166
CompilerDecl.h
lldb_private::CompilerDecl::GetNumFunctionArguments
size_t GetNumFunctionArguments() const
Definition: CompilerDecl.cpp:31
lldb_private::TypeSystem::DeclGetDeclContext
virtual CompilerDeclContext DeclGetDeclContext(void *opaque_decl)
Definition: TypeSystem.cpp:158
lldb_private::CompilerDecl::GetOpaqueDecl
void * GetOpaqueDecl() const
Definition: CompilerDecl.h:58
lldb_private::CompilerDecl
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28
lldb_private::CompilerDecl::m_type_system
TypeSystem * m_type_system
Definition: CompilerDecl.h:88
lldb_private::TypeSystem::DeclGetMangledName
virtual ConstString DeclGetMangledName(void *opaque_decl)
Definition: TypeSystem.cpp:154
lldb_private::operator==
bool operator==(const Address &lhs, const Address &rhs)
Definition: Address.cpp:1016
lldb_private::CompilerDecl::GetName
ConstString GetName() const
Definition: CompilerDecl.cpp:15
lldb_private::CompilerDecl::GetFunctionReturnType
CompilerType GetFunctionReturnType() const
Definition: CompilerDecl.cpp:27
lldb_private::CompilerDecl::GetTypeSystem
TypeSystem * GetTypeSystem() const
Definition: CompilerDecl.h:56
lldb_private::ConstString
Definition: ConstString.h:39
lldb_private::CompilerDecl::GetDeclContext
CompilerDeclContext GetDeclContext() const
Definition: CompilerDecl.cpp:23
lldb_private::TypeSystem::DeclGetName
virtual ConstString DeclGetName(void *opaque_decl)=0
TypeSystem.h
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition: CompilerDeclContext.h:30
lldb_private::operator!=
bool operator!=(const Address &lhs, const Address &rhs)
Definition: Address.cpp:1022
lldb_private::CompilerDecl::m_opaque_decl
void * m_opaque_decl
Definition: CompilerDecl.h:89
lldb_private::CompilerDecl::GetFunctionArgumentType
CompilerType GetFunctionArgumentType(size_t arg_idx) const
Definition: CompilerDecl.cpp:35
lldb_private::CompilerDecl::GetMangledName
ConstString GetMangledName() const
Definition: CompilerDecl.cpp:19
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:36
CompilerDeclContext.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::TypeSystem::DeclGetFunctionReturnType
virtual CompilerType DeclGetFunctionReturnType(void *opaque_decl)
Definition: TypeSystem.cpp:162
lldb_private::TypeSystem::DeclGetFunctionArgumentType
virtual CompilerType DeclGetFunctionArgumentType(void *opaque_decl, size_t arg_idx)
Definition: TypeSystem.cpp:168