Skip to content

[struct_pb][fix and feat]1. fix当成员是std::variant类型时.get_fields_name 会有重复字段名bug;2.添加get_field_any接口,具体类型转换延迟到用户端代码 #1934

[struct_pb][fix and feat]1. fix当成员是std::variant类型时.get_fields_name 会有重复字段名bug;2.添加get_field_any接口,具体类型转换延迟到用户端代码

[struct_pb][fix and feat]1. fix当成员是std::variant类型时.get_fields_name 会有重复字段名bug;2.添加get_field_any接口,具体类型转换延迟到用户端代码 #1934

Workflow file for this run

name: Clang Format Diff
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install clang-format
run: sudo apt install clang-format
- name: check-diff
run: |
diff=`git-clang-format --diff HEAD^`
if ! [[ "$diff" = "no modified files to format" || "$diff" = "clang-format did not modify any files" ]]; then
echo "The diff you sent is not formatted correctly."
echo "The suggested format is"
echo "$diff"
exit 1
fi