Blender V5.3
bsl Namespace Reference

Namespaces

namespace  builtin
namespace  mini_fmt

Classes

struct  AstNodeException
struct  BSLParser
struct  CodegenContext
struct  ConstexprValue
struct  ExpressionResult
struct  ExpressionTypeParser
struct  NodeErrorHandler
struct  ParsedAttribute
struct  Result
struct  ResultPair
struct  SourceLocation
 Represents a specific position within a source file or included sub-file. More...
struct  StringPair
struct  Symbol
struct  SymbolClass
struct  SymbolFunction
struct  SymbolMap
struct  SymbolParser
struct  SymbolScope
struct  SymbolTable
struct  SymbolTemplate
struct  SymbolVariable
struct  TokenException

Typedefs

using Token = blender::gpu::shader::parser::Token
using ParserBase = blender::gpu::shader::parser::ParserBase
using SymbolClassTemplate = SymbolTemplate<SymbolClass>
using SymbolFunctionTemplate = SymbolTemplate<SymbolFunction>
using ConstexprError = ConstexprValue

Enumerations

enum class  Diag {
  CompilerErrorADLOnTypesNotAllowed , CompilerErrorMemberFuncNoClass , CompilerErrorChildScopeNotFound , AnonymousUnionNotSupportedAtNamespaceScope ,
  ArrayMultidimensionalImplicitSize , ArrayMultidimensionalNotSupported , ArrayNeedsSizeOrInitializer , ArraySizeMustBeGreaterThanZero ,
  ArraySizeNotConstantExpression , ArrayTypeOperand , AttributeOnlyEntryPointsCanUseIn , AttributeOnlyEntryPointsCanUseOut ,
  AttributeNotAllowedInComp , AutoTypeMultipleExpressions , AutoTypeNestedInitializer , AutoTypeCannotBeDeduced ,
  BitFieldNotIntegral , BitFieldSizeNegative , BitFieldSizeTooLarge , BitFieldSizeNull ,
  BitFieldNotSingleDeclarator , CapacityArrayDimensionMismatch , CapacityArrayImplicitSize , ConditionAttributeDeclaredHere ,
  ConditionAttributeMultiple , ConditionAttributeNotChecked , ConditionAttributeNotOnResource , ConditionAttributeUnsupported ,
  CompilationConstantRedefinition , CompilationConstantPreviousDecl , ConstexprDivisionByZero , ConstexprGlobalNonStatic ,
  ConstexprIfConditionNotConstexpr , ConstexprMemberNonStatic , ConstexprShiftNegative , ConstexprShiftTooLarge ,
  ConstexprVarMustBeInitializedByConstantExpr , ConstexprVarMustBeInitializedByCorrectType , ConstexprVarMustBeValidType , ConstexprVarMustNotBeArray ,
  ResourceTableDeclarationAlreadyOfType , EmptyClassNotSupportedInBuffer , EntryPointVoidReturn , ExpectedArrayMemberInitializer ,
  ExpectedColon , ExpectedEntryPointResourceAttribute , ExpectedImageFormat , ExpectedNParametersForAttribute ,
  ExpectedOneTypename , ExpectedParenthesis , ExpectedRangeParametersForAttribute , ExpectedScalarInitializer ,
  ExpectedResourceDefinitionOfType , ExpectedResourceOfEitherType , ExpectedResourceOfType , ExpectedResourceTableInitializer ,
  ExpectedComputeShaderEntryPoint , ExpectedFragmentShaderEntryPoint , ExpectedVertexShaderEntryPoint , ExprCannotContainFunctionCalls ,
  ExprNotIntegralConstant , FieldDesignatorNotFound , FieldDesignatorOutOfOrder , FunctionCallNotAllowedInReferenceDefinition ,
  ImplicitPadding12BytesArrayElement , ImplicitPaddingArrayElementStd140 , ImplicitPaddingAtEndOfStruct , ImplicitPaddingBeforeMember ,
  InitializerListRequiresExplicitType , InvalidBinaryOperands , InvalidExprTypeChecker , InvalidExprTypeCodegen ,
  InvalidInlinedFunctionLocation , InvalidNumberLiteral , InvalidResourceTypeForResourceTableClass , InvalidSubscript ,
  InvalidUnaryArgumentType , MissingParameterForCall , OperatorCalledIsNotFunction , OperatorTokenInvalid ,
  OperatorInvalidTernary , OperatorBitfieldInvalid , OverloadAmbiguous , OverloadNotFound ,
  NonConstVariableInExpr , NoteDeclarationUnionRequested , NoteInDeclarationOfVariable , NoteInInliningOf ,
  NoteInStorageBufferDeclaration , NoteInUniformBufferDeclaration , NoteInstantiationClassTemplateRequested , NoteInstantiationFuncTemplateRequested ,
  NotePreviousDefinition , ParserTrailingInput , InliningRecursive , Redefinition ,
  RedefinitionOfEntryPointFunction , RedefinitionTemplate , ReferenceCannotBindNonConstSubscript , ReferenceCannotBindSideEffect ,
  ReferenceCannotBindTemporary , ReferenceMixedVarDecl , ReferenceTypeMismatch , ReferenceVariableRequiresInitializer ,
  ResourceAttributesOnlyOnEntryPointArgs , ResourceTableConstructorNotAllowed , ResourceTableMustBeReference , ResourcesNotAllowedInAnonymousStruct ,
  ResourceOutOfClassDeclaration , ReturnOutsideFunction , StaticBranchConstexprIfNotAllowed , StaticBranchMissingPrevious ,
  StaticBranchRequiredByPrevious , StaticDataMemberNotAllowed , StructuredBindingNotEnoughNames , StructuredBindingTooManyNames ,
  SubscriptNotInt , TemplateInvalidArg , TemplateMissingArgument , TemplateMissingExplicitArguments ,
  TemplateMissingParentClassInstantiation , TemplateMissingInstantiation , TemplateMissingDefinition , TemplateMissingParameters ,
  TemplateMissingParametersForType , TemplateParameterCountMismatch , TemplateParameterNotConstexpr , TypeNotAllowedInStorageBuffer ,
  TypeNotAllowedInUniformAndStorageBuffer , TypeNotAllowedInUniformBufferImplicitPadding , TypeNotConvertibleToBool , UnionArrayUnsupported ,
  UnknownAttribute , UnknownClassInstantiation , UnknownFunction , UnknownIdentifier ,
  UnknownMember , UnknownTypeName , UnknownTypeNameWithArg , UnknownVariable ,
  UnrolledLoopCommaOperator , UnrolledLoopInvalidExpression , UnrolledLoopMissingAssignment , UnrolledLoopMissingInit ,
  UnrolledLoopMultipleVariables , UnrolledLoopMustAssignToVar , UnrolledLoopNonIntVar , UnrolledLoopNotConstexpr ,
  UnrolledLoopTooManyIterations , UnsupportedSymbolInExpr , UsingNamespaceNotSupported
}
enum  OperatorType : uint16_t {
  OP_NUMERIC = 0b0000'1000'0000'0000 , OP_INTEGER = 0b0001'0000'0000'0000 , OP_BOOL = 0b0010'0000'0000'0000 , OP_ARITHMETIC = 0b0000'0000'0000'0001 ,
  OP_BITWISE = 0b0000'0000'0000'0010 , OP_SHIFT = 0b0000'0000'0000'0100 , OP_EQUALITY = 0b0000'0000'0000'1000 , OP_RELATIONAL = 0b0000'0000'0001'0000 ,
  OP_LOGICAL = 0b0000'0000'0010'0000 , OP_ASSIGN = 0b0000'0000'0100'0000 , OP_INVALID = 0b1111'1111'1111'1111
}
enum class  ResourceType {
  NONE = 0 , LEGACY_INFO , LEGACY_IFACE , COMPILATION_CONST ,
  SPECIALIZATION_CONST , PUSH_CONST , SAMPLER , IMAGE ,
  UNIFORM_BUF , STORAGE_BUF , ACCELERATION_STRUCTURE , RESOURCE_TABLE ,
  SHARED , VERT_ATTR_IN , VERT_ATTR_OUT , FRAG_IN ,
  FRAG_OUT , BASE_INSTANCE , CLIP_CONTROL , CLIP_DISTANCES ,
  FRONT_FACING , GLOBAL_INVOCATION_ID , IN , INSTANCE_ID ,
  INSTANCE_INDEX , LAYER , LOCAL_INVOCATION_ID , LOCAL_INVOCATION_INDEX ,
  OUT , POINT_COORD , POINT_SIZE , POSITION ,
  SUBPASS_IN , VERTEX_ID , VIEWPORT_INDEX , WORK_GROUP_ID ,
  NUM_WORK_GROUP , FRAG_DEPTH , FRAG_COORD , BARY_COORD ,
  STENCIL_REF , CONDITION , FREQUENCY , DUAL_SOURCE_INDEX ,
  RASTER_ORDER_GROUP , CAPACITY
}
enum class  ResourceTableType {
  NONE = 0 , VERTEX_IN , VERTEX_OUT , FRAGMENT_OUT ,
  FRAGMENT_IN , RESOURCE_TABLE , ENTRY_POINT
}
enum class  MatchRank { None = 0 , Conversion = 1 , Promotion = 2 , Exact = 3 }
enum  ExprFlag : uint8_t { IsNone = 0 , IsConstant , IsConstexpr }

Functions

static string to_uppercase (string str)
static TokenType strip_assignment (TokenType tok)
static const char * to_token_string (TokenType tok)
template<typename Func>
auto apply_integral (Func func, const auto &lhs, const auto &rhs)
ConstexprValue operator+ (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator- (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator* (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator/ (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator&& (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator|| (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator== (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator!= (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator< (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator<= (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator> (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator>= (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator% (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator& (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator| (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator^ (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator<< (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue operator>> (const ConstexprValue &lhs, const ConstexprValue &rhs)
bool contains_zero (const ConstexprValue &v)
bool anyLessThan (const ConstexprValue &lhs, int rhs)
bool anyGreaterThanEqual (const ConstexprValue &lhs, int rhs)
static std::string_view diagnostic_message_get (Diag diag)
static OperatorType to_operator_type (TokenType tok_type)
Result< ParsedAttribute > resource_type_from_attributes (AttrList list)
static std::string to_str (ResourceType type)
static std::string to_str (ResourceTableType type)
static string to_str (const vector< SymbolClass * > &types)
static bool is_strictly_better (const std::vector< MatchRank > &candidate, const std::vector< MatchRank > &best)
template<typename T, typename AstNodeT>
static Result< T * > resolve_template_instantiation (const SymbolTable &table, T *sym, AstNodeT id, const SymbolScope &scope)
template<typename T>
const char * get_symbol_type_name ()
static std::string to_string_exact (float val)
std::string constexpr_to_string (const ConstexprValue &v)

Variables

static const char * ns_sep = blender::gpu::shader::SourceProcessor::namespace_separator

Typedef Documentation

◆ ConstexprError

Definition at line 35 of file symbol_variable.hh.

◆ ParserBase

◆ SymbolClassTemplate

◆ SymbolFunctionTemplate

◆ Token

Definition at line 18 of file diagnostic.hh.

Enumeration Type Documentation

◆ Diag

enum class bsl::Diag
strong
Enumerator
CompilerErrorADLOnTypesNotAllowed 
CompilerErrorMemberFuncNoClass 
CompilerErrorChildScopeNotFound 
AnonymousUnionNotSupportedAtNamespaceScope 
ArrayMultidimensionalImplicitSize 
ArrayMultidimensionalNotSupported 
ArrayNeedsSizeOrInitializer 
ArraySizeMustBeGreaterThanZero 
ArraySizeNotConstantExpression 
ArrayTypeOperand 
AttributeOnlyEntryPointsCanUseIn 
AttributeOnlyEntryPointsCanUseOut 
AttributeNotAllowedInComp 
AutoTypeMultipleExpressions 
AutoTypeNestedInitializer 
AutoTypeCannotBeDeduced 
BitFieldNotIntegral 
BitFieldSizeNegative 
BitFieldSizeTooLarge 
BitFieldSizeNull 
BitFieldNotSingleDeclarator 
CapacityArrayDimensionMismatch 
CapacityArrayImplicitSize 
ConditionAttributeDeclaredHere 
ConditionAttributeMultiple 
ConditionAttributeNotChecked 
ConditionAttributeNotOnResource 
ConditionAttributeUnsupported 
CompilationConstantRedefinition 
CompilationConstantPreviousDecl 
ConstexprDivisionByZero 
ConstexprGlobalNonStatic 
ConstexprIfConditionNotConstexpr 
ConstexprMemberNonStatic 
ConstexprShiftNegative 
ConstexprShiftTooLarge 
ConstexprVarMustBeInitializedByConstantExpr 
ConstexprVarMustBeInitializedByCorrectType 
ConstexprVarMustBeValidType 
ConstexprVarMustNotBeArray 
ResourceTableDeclarationAlreadyOfType 
EmptyClassNotSupportedInBuffer 
EntryPointVoidReturn 
ExpectedArrayMemberInitializer 
ExpectedColon 
ExpectedEntryPointResourceAttribute 
ExpectedImageFormat 
ExpectedNParametersForAttribute 
ExpectedOneTypename 
ExpectedParenthesis 
ExpectedRangeParametersForAttribute 
ExpectedScalarInitializer 
ExpectedResourceDefinitionOfType 
ExpectedResourceOfEitherType 
ExpectedResourceOfType 
ExpectedResourceTableInitializer 
ExpectedComputeShaderEntryPoint 
ExpectedFragmentShaderEntryPoint 
ExpectedVertexShaderEntryPoint 
ExprCannotContainFunctionCalls 
ExprNotIntegralConstant 
FieldDesignatorNotFound 
FieldDesignatorOutOfOrder 
FunctionCallNotAllowedInReferenceDefinition 
ImplicitPadding12BytesArrayElement 
ImplicitPaddingArrayElementStd140 
ImplicitPaddingAtEndOfStruct 
ImplicitPaddingBeforeMember 
InitializerListRequiresExplicitType 
InvalidBinaryOperands 
InvalidExprTypeChecker 
InvalidExprTypeCodegen 
InvalidInlinedFunctionLocation 
InvalidNumberLiteral 
InvalidResourceTypeForResourceTableClass 
InvalidSubscript 
InvalidUnaryArgumentType 
MissingParameterForCall 
OperatorCalledIsNotFunction 
OperatorTokenInvalid 
OperatorInvalidTernary 
OperatorBitfieldInvalid 
OverloadAmbiguous 
OverloadNotFound 
NonConstVariableInExpr 
NoteDeclarationUnionRequested 
NoteInDeclarationOfVariable 
NoteInInliningOf 
NoteInStorageBufferDeclaration 
NoteInUniformBufferDeclaration 
NoteInstantiationClassTemplateRequested 
NoteInstantiationFuncTemplateRequested 
NotePreviousDefinition 
ParserTrailingInput 
InliningRecursive 
Redefinition 
RedefinitionOfEntryPointFunction 
RedefinitionTemplate 
ReferenceCannotBindNonConstSubscript 
ReferenceCannotBindSideEffect 
ReferenceCannotBindTemporary 
ReferenceMixedVarDecl 
ReferenceTypeMismatch 
ReferenceVariableRequiresInitializer 
ResourceAttributesOnlyOnEntryPointArgs 
ResourceTableConstructorNotAllowed 
ResourceTableMustBeReference 
ResourcesNotAllowedInAnonymousStruct 
ResourceOutOfClassDeclaration 
ReturnOutsideFunction 
StaticBranchConstexprIfNotAllowed 
StaticBranchMissingPrevious 
StaticBranchRequiredByPrevious 
StaticDataMemberNotAllowed 
StructuredBindingNotEnoughNames 
StructuredBindingTooManyNames 
SubscriptNotInt 
TemplateInvalidArg 
TemplateMissingArgument 
TemplateMissingExplicitArguments 
TemplateMissingParentClassInstantiation 
TemplateMissingInstantiation 
TemplateMissingDefinition 
TemplateMissingParameters 
TemplateMissingParametersForType 
TemplateParameterCountMismatch 
TemplateParameterNotConstexpr 
TypeNotAllowedInStorageBuffer 
TypeNotAllowedInUniformAndStorageBuffer 
TypeNotAllowedInUniformBufferImplicitPadding 
TypeNotConvertibleToBool 
UnionArrayUnsupported 
UnknownAttribute 
UnknownClassInstantiation 
UnknownFunction 
UnknownIdentifier 
UnknownMember 
UnknownTypeName 
UnknownTypeNameWithArg 
UnknownVariable 
UnrolledLoopCommaOperator 
UnrolledLoopInvalidExpression 
UnrolledLoopMissingAssignment 
UnrolledLoopMissingInit 
UnrolledLoopMultipleVariables 
UnrolledLoopMustAssignToVar 
UnrolledLoopNonIntVar 
UnrolledLoopNotConstexpr 
UnrolledLoopTooManyIterations 
UnsupportedSymbolInExpr 
UsingNamespaceNotSupported 

Definition at line 96 of file diagnostic.hh.

◆ ExprFlag

enum bsl::ExprFlag : uint8_t
Enumerator
IsNone 
IsConstant 
IsConstexpr 

Definition at line 17 of file type_checker.hh.

◆ MatchRank

enum class bsl::MatchRank
strong
Enumerator
None 
Conversion 
Promotion 
Exact 

Definition at line 16 of file symbol_function.hh.

◆ OperatorType

enum bsl::OperatorType : uint16_t
Enumerator
OP_NUMERIC 
OP_INTEGER 
OP_BOOL 
OP_ARITHMETIC 
OP_BITWISE 
OP_SHIFT 
OP_EQUALITY 
OP_RELATIONAL 
OP_LOGICAL 
OP_ASSIGN 
OP_INVALID 

Definition at line 13 of file operator.cc.

◆ ResourceTableType

enum class bsl::ResourceTableType
strong
Enumerator
NONE 
VERTEX_IN 
VERTEX_OUT 
FRAGMENT_OUT 
FRAGMENT_IN 
RESOURCE_TABLE 
ENTRY_POINT 

Definition at line 131 of file resource.hh.

◆ ResourceType

enum class bsl::ResourceType
strong
Enumerator
NONE 
LEGACY_INFO 
LEGACY_IFACE 
COMPILATION_CONST 
SPECIALIZATION_CONST 
PUSH_CONST 
SAMPLER 
IMAGE 
UNIFORM_BUF 
STORAGE_BUF 
ACCELERATION_STRUCTURE 
RESOURCE_TABLE 
SHARED 
VERT_ATTR_IN 
VERT_ATTR_OUT 
FRAG_IN 
FRAG_OUT 
BASE_INSTANCE 
CLIP_CONTROL 
CLIP_DISTANCES 
FRONT_FACING 
GLOBAL_INVOCATION_ID 
IN 
INSTANCE_ID 
INSTANCE_INDEX 
LAYER 
LOCAL_INVOCATION_ID 
LOCAL_INVOCATION_INDEX 
OUT 
POINT_COORD 
POINT_SIZE 
POSITION 
SUBPASS_IN 
VERTEX_ID 
VIEWPORT_INDEX 
WORK_GROUP_ID 
NUM_WORK_GROUP 
FRAG_DEPTH 
FRAG_COORD 
BARY_COORD 
STENCIL_REF 
CONDITION 
FREQUENCY 
DUAL_SOURCE_INDEX 
RASTER_ORDER_GROUP 
CAPACITY 

Definition at line 20 of file resource.hh.

Function Documentation

◆ anyGreaterThanEqual()

bool bsl::anyGreaterThanEqual ( const ConstexprValue & lhs,
int rhs )
inline

◆ anyLessThan()

bool bsl::anyLessThan ( const ConstexprValue & lhs,
int rhs )
inline

◆ apply_integral()

template<typename Func>
auto bsl::apply_integral ( Func func,
const auto & lhs,
const auto & rhs )

◆ constexpr_to_string()

◆ contains_zero()

bool bsl::contains_zero ( const ConstexprValue & v)
inline

Definition at line 547 of file constexpr.hh.

References contains_zero().

Referenced by bsl::ExpressionTypeParser::binary(), and contains_zero().

◆ diagnostic_message_get()

std::string_view bsl::diagnostic_message_get ( Diag diag)
inlinestatic

Definition at line 292 of file diagnostic.hh.

References AnonymousUnionNotSupportedAtNamespaceScope, ArrayMultidimensionalImplicitSize, ArrayMultidimensionalNotSupported, ArrayNeedsSizeOrInitializer, ArraySizeMustBeGreaterThanZero, ArraySizeNotConstantExpression, ArrayTypeOperand, AttributeNotAllowedInComp, AttributeOnlyEntryPointsCanUseIn, AttributeOnlyEntryPointsCanUseOut, AutoTypeCannotBeDeduced, AutoTypeMultipleExpressions, AutoTypeNestedInitializer, BitFieldNotIntegral, BitFieldNotSingleDeclarator, BitFieldSizeNegative, BitFieldSizeNull, BitFieldSizeTooLarge, CapacityArrayDimensionMismatch, CapacityArrayImplicitSize, CompilationConstantPreviousDecl, CompilationConstantRedefinition, CompilerErrorADLOnTypesNotAllowed, CompilerErrorChildScopeNotFound, CompilerErrorMemberFuncNoClass, ConditionAttributeDeclaredHere, ConditionAttributeMultiple, ConditionAttributeNotChecked, ConditionAttributeNotOnResource, ConditionAttributeUnsupported, ConstexprDivisionByZero, ConstexprGlobalNonStatic, ConstexprIfConditionNotConstexpr, ConstexprMemberNonStatic, ConstexprShiftNegative, ConstexprShiftTooLarge, ConstexprVarMustBeInitializedByConstantExpr, ConstexprVarMustBeInitializedByCorrectType, ConstexprVarMustBeValidType, ConstexprVarMustNotBeArray, diagnostic_message_get(), EmptyClassNotSupportedInBuffer, EntryPointVoidReturn, ExpectedArrayMemberInitializer, ExpectedColon, ExpectedComputeShaderEntryPoint, ExpectedEntryPointResourceAttribute, ExpectedFragmentShaderEntryPoint, ExpectedImageFormat, ExpectedNParametersForAttribute, ExpectedOneTypename, ExpectedParenthesis, ExpectedRangeParametersForAttribute, ExpectedResourceDefinitionOfType, ExpectedResourceOfEitherType, ExpectedResourceOfType, ExpectedResourceTableInitializer, ExpectedScalarInitializer, ExpectedVertexShaderEntryPoint, ExprCannotContainFunctionCalls, ExprNotIntegralConstant, FieldDesignatorNotFound, FieldDesignatorOutOfOrder, FunctionCallNotAllowedInReferenceDefinition, ImplicitPadding12BytesArrayElement, ImplicitPaddingArrayElementStd140, ImplicitPaddingAtEndOfStruct, ImplicitPaddingBeforeMember, InitializerListRequiresExplicitType, InliningRecursive, InvalidBinaryOperands, InvalidExprTypeChecker, InvalidExprTypeCodegen, InvalidInlinedFunctionLocation, InvalidNumberLiteral, InvalidResourceTypeForResourceTableClass, InvalidSubscript, InvalidUnaryArgumentType, MissingParameterForCall, NonConstVariableInExpr, NoteDeclarationUnionRequested, NoteInDeclarationOfVariable, NoteInInliningOf, NoteInstantiationClassTemplateRequested, NoteInstantiationFuncTemplateRequested, NoteInStorageBufferDeclaration, NoteInUniformBufferDeclaration, NotePreviousDefinition, OperatorBitfieldInvalid, OperatorCalledIsNotFunction, OperatorInvalidTernary, OperatorTokenInvalid, OverloadAmbiguous, OverloadNotFound, ParserTrailingInput, Redefinition, RedefinitionOfEntryPointFunction, RedefinitionTemplate, ReferenceCannotBindNonConstSubscript, ReferenceCannotBindSideEffect, ReferenceCannotBindTemporary, ReferenceMixedVarDecl, ReferenceTypeMismatch, ReferenceVariableRequiresInitializer, ResourceAttributesOnlyOnEntryPointArgs, ResourceOutOfClassDeclaration, ResourcesNotAllowedInAnonymousStruct, ResourceTableConstructorNotAllowed, ResourceTableDeclarationAlreadyOfType, ResourceTableMustBeReference, ReturnOutsideFunction, StaticBranchConstexprIfNotAllowed, StaticBranchMissingPrevious, StaticBranchRequiredByPrevious, StaticDataMemberNotAllowed, StructuredBindingNotEnoughNames, StructuredBindingTooManyNames, SubscriptNotInt, TemplateInvalidArg, TemplateMissingArgument, TemplateMissingDefinition, TemplateMissingExplicitArguments, TemplateMissingInstantiation, TemplateMissingParameters, TemplateMissingParametersForType, TemplateMissingParentClassInstantiation, TemplateParameterCountMismatch, TemplateParameterNotConstexpr, TypeNotAllowedInStorageBuffer, TypeNotAllowedInUniformAndStorageBuffer, TypeNotAllowedInUniformBufferImplicitPadding, TypeNotConvertibleToBool, UnionArrayUnsupported, UnknownAttribute, UnknownClassInstantiation, UnknownFunction, UnknownIdentifier, UnknownMember, UnknownTypeName, UnknownTypeNameWithArg, UnknownVariable, UnrolledLoopCommaOperator, UnrolledLoopInvalidExpression, UnrolledLoopMissingAssignment, UnrolledLoopMissingInit, UnrolledLoopMultipleVariables, UnrolledLoopMustAssignToVar, UnrolledLoopNonIntVar, UnrolledLoopNotConstexpr, UnrolledLoopTooManyIterations, UnsupportedSymbolInExpr, and UsingNamespaceNotSupported.

Referenced by diagnostic_message_get(), bsl::NodeErrorHandler::error(), bsl::NodeErrorHandler::note(), and bsl::NodeErrorHandler::note().

◆ get_symbol_type_name()

template<typename T>
const char * bsl::get_symbol_type_name ( )

Definition at line 193 of file symbol_scope.cc.

References get_symbol_type_name().

Referenced by get_symbol_type_name().

◆ is_strictly_better()

bool bsl::is_strictly_better ( const std::vector< MatchRank > & candidate,
const std::vector< MatchRank > & best )
static

Definition at line 78 of file symbol_function.cc.

References is_strictly_better().

Referenced by is_strictly_better(), and bsl::SymbolFunction::lookup_overload().

◆ operator!=()

ConstexprValue bsl::operator!= ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 453 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator!=().

Referenced by operator!=().

◆ operator%()

ConstexprValue bsl::operator% ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 483 of file constexpr.hh.

References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator%().

Referenced by operator%().

◆ operator&()

ConstexprValue bsl::operator& ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 493 of file constexpr.hh.

References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator&().

Referenced by operator&().

◆ operator&&()

ConstexprValue bsl::operator&& ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 435 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator&&().

Referenced by operator&&().

◆ operator*()

ConstexprValue bsl::operator* ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 423 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator*().

Referenced by operator*().

◆ operator+()

ConstexprValue bsl::operator+ ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 413 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator+().

Referenced by operator+().

◆ operator-()

ConstexprValue bsl::operator- ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 418 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator-().

Referenced by operator-().

◆ operator/()

ConstexprValue bsl::operator/ ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 428 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator/().

Referenced by operator/().

◆ operator<()

ConstexprValue bsl::operator< ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 459 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator<().

Referenced by operator<().

◆ operator<<()

ConstexprValue bsl::operator<< ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 523 of file constexpr.hh.

References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator<<().

Referenced by operator<<().

◆ operator<=()

ConstexprValue bsl::operator<= ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 465 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator<=().

Referenced by operator<=().

◆ operator==()

ConstexprValue bsl::operator== ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 447 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator==().

Referenced by operator==().

◆ operator>()

ConstexprValue bsl::operator> ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 471 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator>().

Referenced by operator>().

◆ operator>=()

ConstexprValue bsl::operator>= ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 477 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator>=().

Referenced by operator>=().

◆ operator>>()

ConstexprValue bsl::operator>> ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 535 of file constexpr.hh.

References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator>>().

Referenced by operator>>().

◆ operator^()

ConstexprValue bsl::operator^ ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 513 of file constexpr.hh.

References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator^().

Referenced by operator^().

◆ operator|()

ConstexprValue bsl::operator| ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 503 of file constexpr.hh.

References apply_integral(), bsl::ConstexprValue::constexpr_op(), and operator|().

Referenced by operator|().

◆ operator||()

ConstexprValue bsl::operator|| ( const ConstexprValue & lhs,
const ConstexprValue & rhs )
inline

Definition at line 441 of file constexpr.hh.

References bsl::ConstexprValue::constexpr_op(), and operator||().

Referenced by operator||().

◆ resolve_template_instantiation()

template<typename T, typename AstNodeT>
Result< T * > bsl::resolve_template_instantiation ( const SymbolTable & table,
T * sym,
AstNodeT id,
const SymbolScope & scope )
static

◆ resource_type_from_attributes()

Result< ParsedAttribute > bsl::resource_type_from_attributes ( AttrList list)

◆ strip_assignment()

◆ to_operator_type()

◆ to_str() [1/3]

string bsl::to_str ( const vector< SymbolClass * > & types)
static

Definition at line 40 of file symbol_function.cc.

References to_str().

Referenced by bsl::SymbolFunction::lookup_overload(), and to_str().

◆ to_str() [2/3]

std::string bsl::to_str ( ResourceTableType type)
inlinestatic

◆ to_str() [3/3]

◆ to_string_exact()

std::string bsl::to_string_exact ( float val)
static

Definition at line 81 of file symbol_variable.cc.

References str, and to_string_exact().

Referenced by constexpr_to_string(), and to_string_exact().

◆ to_token_string()

◆ to_uppercase()

string bsl::to_uppercase ( string str)
static

Definition at line 24 of file codegen.cc.

References str, and to_uppercase().

Referenced by to_uppercase().

Variable Documentation

◆ ns_sep