libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
SourceSyntax::SourceAnalysis< FieldCount, ArgCount > Struct Template Reference

单条 brace 风格格式字面量的仅源串分析数据 / Source-only analysis data for one brace-style format literal More...

#include <format_frontend_source.hpp>

Data Fields

std::array< size_t, FieldCount > argument_order {}
 source-ordered argument references / 按源串顺序引用的参数索引
 
size_t required_argument_count = 0
 minimum call-site argument count / 调用点至少需要的参数个数
 
Error error = Error::None
 first source-only parse error / 首个仅源串解析错误
 
std::array< size_t, FieldCount > order {}
 field-ordered source argument indexes / 按字段顺序排列的源参数索引
 
std::array< FormatArgumentInfo, ArgCount > args {}
 source-ordered argument metadata / 按源参数顺序排列的参数元信息
 

Detailed Description

template<size_t FieldCount, size_t ArgCount>
struct SourceSyntax::SourceAnalysis< FieldCount, ArgCount >

单条 brace 风格格式字面量的仅源串分析数据 / Source-only analysis data for one brace-style format literal

最终的源级位置参数或顺序参数摘要 / Final source-level positional or sequential argument summary

Template Parameters
FieldCount最终解析出的字段数量 / Final parsed field count
FieldCount最终解析出的转换项数量 / Final parsed conversion count
ArgCount最终引用到的参数个数 / Final referenced argument count

Definition at line 40 of file printf_frontend_source.hpp.

Field Documentation

◆ args

template<size_t FieldCount, size_t ArgCount>
std::array<FormatArgumentInfo, ArgCount> SourceSyntax::SourceAnalysis< FieldCount, ArgCount >::args {}

source-ordered argument metadata / 按源参数顺序排列的参数元信息

Definition at line 43 of file printf_frontend_source.hpp.

43{};

◆ argument_order

template<size_t FieldCount, size_t ArgCount>
std::array<size_t, FieldCount> SourceSyntax::SourceAnalysis< FieldCount, ArgCount >::argument_order {}

source-ordered argument references / 按源串顺序引用的参数索引

Definition at line 12 of file format_frontend_source.hpp.

12{};

◆ error

template<size_t FieldCount, size_t ArgCount>
Error SourceSyntax::SourceAnalysis< FieldCount, ArgCount >::error = Error::None

first source-only parse error / 首个仅源串解析错误

first parse/analysis error / 首个解析或分析错误

Definition at line 14 of file format_frontend_source.hpp.

◆ order

template<size_t FieldCount, size_t ArgCount>
std::array<size_t, FieldCount> SourceSyntax::SourceAnalysis< FieldCount, ArgCount >::order {}

field-ordered source argument indexes / 按字段顺序排列的源参数索引

Definition at line 42 of file printf_frontend_source.hpp.

42{};

◆ required_argument_count

template<size_t FieldCount, size_t ArgCount>
size_t SourceSyntax::SourceAnalysis< FieldCount, ArgCount >::required_argument_count = 0

minimum call-site argument count / 调用点至少需要的参数个数

Definition at line 13 of file format_frontend_source.hpp.


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