Blender V5.3
diagnostic.hh File Reference
#include "ast.hh"
#include "token.hh"
#include <sstream>

Go to the source code of this file.

Classes

struct  bsl::AstNodeException
struct  bsl::TokenException
struct  bsl::NodeErrorHandler
struct  bsl::NodeErrorHandler::ScopedNote
struct  bsl::Result< T, ExceptionT >
struct  bsl::ResultPair< T, U, ExceptionT >

Namespaces

namespace  bsl
namespace  bsl::mini_fmt
namespace  bsl::mini_fmt::detail

Macros

#define NOTE(node, diag, id)

Typedefs

using bsl::Token = blender::gpu::shader::parser::Token

Enumerations

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

Functions

template<typename T>
std::string bsl::mini_fmt::detail::to_string_arg (T &&arg)
template<typename... Args>
std::vector< std::string > bsl::mini_fmt::detail::args_to_strings (Args &&...args)
template<typename... Args>
std::string bsl::mini_fmt::format (const std::string &fmt, Args &&...args)
static std::string_view bsl::diagnostic_message_get (Diag diag)

Macro Definition Documentation

◆ NOTE