|
Blender V5.3
|
#include <symbol_class.hh>
Inherits bsl::SymbolScope.
Classes | |
| struct | MemberNode |
Public Attributes | |
| ResourceTableType | srt_type = ResourceTableType::NONE |
| SymbolClassTemplate * | template_data = nullptr |
| SymbolFunction * | operator_subscript = nullptr |
| int | size = -1 |
| int | align = -1 |
| builtin::ClassId | builtin_class = builtin::ClassId::Invalid |
| int8_t | comp_len = 0 |
| bool | is_anonymous = false |
| bool | is_union = false |
| bool | is_enum = false |
| bool | is_std140_compatible = false |
| bool | is_std430_compatible = false |
| bool | is_error = false |
| bool | is_opaque = false |
| Public Attributes inherited from bsl::SymbolScope | |
| friend | SymbolParser |
| unordered_map< string, SymbolScope * > | scopes |
| SymbolMap< SymbolVariable > | variables |
| SymbolMap< SymbolFunction > | functions |
| SymbolMap< SymbolClass > | classes |
| vector< std::pair< ast::FuncForwardDecl, SymbolFunction * > > | function_prototypes |
| optional< SourceLocation > | poi |
| enum bsl::SymbolScope::Type | type = ROOT |
| Public Attributes inherited from bsl::Symbol | |
| string | identifier |
| string | original |
| SourceLocation | loc |
| SymbolScope * | parent = nullptr |
Additional Inherited Members | |
| Public Types inherited from bsl::SymbolScope | |
| enum | Type { FUNCTION , CLASS , NAMESPACE , LOCAL , ROOT } |
Container for a class symbol and its metadata.
Definition at line 117 of file symbol_class.hh.
| bsl::SymbolClass::SymbolClass | ( | SymbolScope * | parent, |
| ast::ClassDecl | decl, | ||
| const string & | suffix = "" ) |
Definition at line 15 of file symbol_class.cc.
References bsl::SymbolScope::CLASS, bsl::SymbolScope::classes, lexit::Enum, bsl::Symbol::identifier, is_anonymous, is_enum, is_union, bsl::Symbol::parent, size, str, bsl::SymbolScope::SymbolScope(), to_string(), and lexit::Union.
Referenced by ensure_size_and_align().
|
inline |
Definition at line 143 of file symbol_class.hh.
References align, builtin_class, bsl::SymbolScope::CLASS, bsl::builtin::Invalid, bsl::Symbol::parent, size, and bsl::SymbolScope::SymbolScope().
| void bsl::SymbolClass::ensure_size_and_align | ( | NodeErrorHandler * | err_handler = nullptr, |
| bool | check_st430 = false ) |
Definition at line 89 of file symbol_class.cc.
References align, bsl::ArraySizeNotConstantExpression, bsl::EmptyClassNotSupportedInBuffer, ensure_size_and_align(), bsl::NodeErrorHandler::error(), bsl::Symbol::identifier, bsl::ImplicitPadding12BytesArrayElement, bsl::ImplicitPaddingArrayElementStd140, bsl::ImplicitPaddingAtEndOfStruct, bsl::ImplicitPaddingBeforeMember, is_builtin(), is_enum, is_std140_compatible, is_std430_compatible, is_union, bsl::Symbol::loc, max, bsl::SymbolScope::non_static_variables_in_declaration_order(), bsl::NodeErrorHandler::note(), bsl::NoteInDeclarationOfVariable, pad, size, SymbolClass(), bsl::SourceLocation::tok, bsl::SymbolScope::type, bsl::TypeNotAllowedInStorageBuffer, bsl::TypeNotAllowedInUniformAndStorageBuffer, and bsl::TypeNotAllowedInUniformBufferImplicitPadding.
Referenced by ensure_size_and_align(), and bsl::SymbolParser::parse_var_decl().
| Result< vector< SymbolClass::MemberNode >, TokenException > bsl::SymbolClass::get_all_members_flat | ( | ) | const |
Definition at line 29 of file symbol_class.cc.
|
inline |
Definition at line 163 of file symbol_class.hh.
References builtin_class, and bsl::builtin::Invalid.
Referenced by ensure_size_and_align(), and bsl::SymbolTable::get_conversion_rank().
|
inline |
Definition at line 158 of file symbol_class.hh.
References bsl::NONE, and srt_type.
Referenced by bsl::CodegenContext::CodegenExpressionParser::member(), and bsl::SymbolParser::parse_var_decl().
| int bsl::SymbolClass::align = -1 |
Definition at line 125 of file symbol_class.hh.
Referenced by ensure_size_and_align(), and SymbolClass().
| builtin::ClassId bsl::SymbolClass::builtin_class = builtin::ClassId::Invalid |
Definition at line 127 of file symbol_class.hh.
Referenced by bsl::builtin::binary_operator_return_type(), bsl::SymbolTable::get_conversion_rank(), is_builtin(), SymbolClass(), bsl::builtin::unary_prefix_operator_return_type(), and bsl::builtin::unary_suffix_operator_return_type().
| int8_t bsl::SymbolClass::comp_len = 0 |
Definition at line 130 of file symbol_class.hh.
Referenced by bsl::ExpressionTypeParser::identifier().
| bool bsl::SymbolClass::is_anonymous = false |
Definition at line 132 of file symbol_class.hh.
Referenced by bsl::SymbolParser::anonymous_scope_prefix(), bsl::SymbolParser::parse_var_decl(), and SymbolClass().
| bool bsl::SymbolClass::is_enum = false |
Definition at line 134 of file symbol_class.hh.
Referenced by ensure_size_and_align(), bsl::SymbolTable::get_conversion_rank(), and SymbolClass().
| bool bsl::SymbolClass::is_error = false |
Definition at line 137 of file symbol_class.hh.
Referenced by bsl::SymbolParser::parse_function_arguments(), bsl::SymbolParser::parse_structured_binding(), bsl::SymbolParser::parse_using_stmt(), and bsl::SymbolParser::parse_var_decl().
| bool bsl::SymbolClass::is_opaque = false |
Definition at line 139 of file symbol_class.hh.
| bool bsl::SymbolClass::is_std140_compatible = false |
Definition at line 135 of file symbol_class.hh.
Referenced by ensure_size_and_align(), and bsl::SymbolParser::parse_var_decl().
| bool bsl::SymbolClass::is_std430_compatible = false |
Definition at line 136 of file symbol_class.hh.
Referenced by ensure_size_and_align(), and bsl::SymbolParser::parse_var_decl().
| bool bsl::SymbolClass::is_union = false |
Definition at line 133 of file symbol_class.hh.
Referenced by bsl::SymbolParser::anonymous_scope_prefix(), ensure_size_and_align(), bsl::SymbolParser::parse_var_decl(), and SymbolClass().
| SymbolFunction* bsl::SymbolClass::operator_subscript = nullptr |
Definition at line 122 of file symbol_class.hh.
Referenced by bsl::CodegenContext::CodegenExpressionParser::subscript(), and bsl::ExpressionTypeParser::subscript().
| int bsl::SymbolClass::size = -1 |
Definition at line 124 of file symbol_class.hh.
Referenced by ensure_size_and_align(), SymbolClass(), and SymbolClass().
| ResourceTableType bsl::SymbolClass::srt_type = ResourceTableType::NONE |
Definition at line 118 of file symbol_class.hh.
Referenced by is_srt(), bsl::SymbolParser::parse_function_arguments(), and bsl::SymbolParser::parse_var_decl().
| SymbolClassTemplate* bsl::SymbolClass::template_data = nullptr |
Definition at line 120 of file symbol_class.hh.
Referenced by bsl::SymbolParser::parse_template_decl(), bsl::SymbolParser::parse_template_inst(), and bsl::SymbolParser::parse_template_spec().