GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
language_arch_info Struct Reference

#include "language.h"

Classes

struct  type_and_symbol
 

Public Member Functions

 language_arch_info ()=default
 
 DISABLE_COPY_AND_ASSIGN (language_arch_info)
 
void set_bool_type (struct type *type, const char *name=nullptr)
 
void set_string_char_type (struct type *type)
 
struct typestring_char_type () const
 
struct typebool_type () const
 
void add_primitive_type (struct type *type)
 
struct typelookup_primitive_type (const char *name)
 
struct typelookup_primitive_type (gdb::function_view< bool(struct type *)> filter)
 
struct symbollookup_primitive_type_as_symbol (const char *name, enum language lang)
 

Private Member Functions

type_and_symbollookup_primitive_type_and_symbol (const char *name)
 

Private Attributes

std::vector< type_and_symbolprimitive_types_and_symbols
 
struct typem_string_char_type = nullptr
 
const char * m_bool_type_name = nullptr
 
struct typem_bool_type_default = nullptr
 

Detailed Description

Definition at line 90 of file language.h.

Constructor & Destructor Documentation

◆ language_arch_info()

language_arch_info::language_arch_info ( )
default

Member Function Documentation

◆ add_primitive_type()

void language_arch_info::add_primitive_type ( struct type * type)
inline

◆ bool_type()

struct type * language_arch_info::bool_type ( ) const

◆ DISABLE_COPY_AND_ASSIGN()

language_arch_info::DISABLE_COPY_AND_ASSIGN ( language_arch_info )

◆ lookup_primitive_type() [1/2]

struct type * language_arch_info::lookup_primitive_type ( const char * name)

◆ lookup_primitive_type() [2/2]

struct type * language_arch_info::lookup_primitive_type ( gdb::function_view< bool(struct type *)> filter)

Definition at line 966 of file language.c.

References primitive_types_and_symbols.

◆ lookup_primitive_type_and_symbol()

language_arch_info::type_and_symbol * language_arch_info::lookup_primitive_type_and_symbol ( const char * name)
private

Definition at line 941 of file language.c.

References name, and primitive_types_and_symbols.

Referenced by lookup_primitive_type(), and lookup_primitive_type_as_symbol().

◆ lookup_primitive_type_as_symbol()

struct symbol * language_arch_info::lookup_primitive_type_as_symbol ( const char * name,
enum language lang )

◆ set_bool_type()

void language_arch_info::set_bool_type ( struct type * type,
const char * name = nullptr )
inline

◆ set_string_char_type()

void language_arch_info::set_string_char_type ( struct type * type)
inline

◆ string_char_type()

struct type * language_arch_info::string_char_type ( ) const
inline

Definition at line 122 of file language.h.

References m_string_char_type.

Referenced by language_string_char_type().

Member Data Documentation

◆ m_bool_type_default

struct type* language_arch_info::m_bool_type_default = nullptr
private

Definition at line 214 of file language.h.

Referenced by bool_type(), and set_bool_type().

◆ m_bool_type_name

const char* language_arch_info::m_bool_type_name = nullptr
private

Definition at line 211 of file language.h.

Referenced by bool_type(), and set_bool_type().

◆ m_string_char_type

struct type* language_arch_info::m_string_char_type = nullptr
private

Definition at line 208 of file language.h.

Referenced by set_string_char_type(), and string_char_type().

◆ primitive_types_and_symbols

std::vector<type_and_symbol> language_arch_info::primitive_types_and_symbols
private

The documentation for this struct was generated from the following files: