fix(formatting): fix code formating (#5673)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2024-02-18 10:55:46 +08:00
committed by GitHub
parent bd119043a1
commit 46e338e341
5 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ A clear and concise description of what the bug or new feature is.
- Add [Examples](https://github.com/lvgl/lvgl/tree/master/examples) if relevant. - Add [Examples](https://github.com/lvgl/lvgl/tree/master/examples) if relevant.
- Add [Tests](https://github.com/lvgl/lvgl/blob/master/tests/README.md) if applicable. - Add [Tests](https://github.com/lvgl/lvgl/blob/master/tests/README.md) if applicable.
- If you added new options to `lv_conf_template.h` run [lv_conf_internal_gen.py](https://github.com/lvgl/lvgl/blob/master/scripts/lv_conf_internal_gen.py) and update [Kconfig](https://github.com/lvgl/lvgl/blob/master/Kconfig). - If you added new options to `lv_conf_template.h` run [lv_conf_internal_gen.py](https://github.com/lvgl/lvgl/blob/master/scripts/lv_conf_internal_gen.py) and update [Kconfig](https://github.com/lvgl/lvgl/blob/master/Kconfig).
- Run `scripts/code-format.py` ([astyle](http://astyle.sourceforge.net/install.html) needs to be installed) and follow the [Code Conventions](https://docs.lvgl.io/master/CODING_STYLE.html) - Run `scripts/code-format.py` ([astyle](http://astyle.sourceforge.net/install.html) version [v3.4.10](https://github.com/szepeviktor/astyle/releases/tag/v3.4.10) needs to be installed) and follow the [Code Conventions](https://docs.lvgl.io/master/CODING_STYLE.html).
- Mark the Pull request as [Draft](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) while you are working on the first version, and mark is as _Ready_ when it's ready for review. - Mark the Pull request as [Draft](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-stage-of-a-pull-request) while you are working on the first version, and mark is as _Ready_ when it's ready for review.
- When changes were requested, [re-request review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) to notify the maintainers. - When changes were requested, [re-request review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) to notify the maintainers.
- Help us to review this Pull Request! Anyone can [approve or request changes](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/approving-a-pull-request-with-required-reviews). - Help us to review this Pull Request! Anyone can [approve or request changes](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/approving-a-pull-request-with-required-reviews).

View File

@@ -18,6 +18,7 @@ jobs:
with: with:
repository: szepeviktor/astyle repository: szepeviktor/astyle
path: astyle path: astyle
ref: v3.4.10
- name: Install astyle - name: Install astyle
run: | run: |
cd astyle/build/gcc/ cd astyle/build/gcc/

View File

@@ -47,7 +47,7 @@ Create Fragment Class
/* Create view objects */ /* Create view objects */
.create_obj_cb = sample_fragment_create_obj, .create_obj_cb = sample_fragment_create_obj,
/* IMPORTANT: size of your fragment struct */ /* IMPORTANT: size of your fragment struct */
.instance_size = sizeof(struct sample_fragment_t) .instance_size = sizeof(struct sample_fragment_t),
}; };
Use ``lv_fragment_manager`` Use ``lv_fragment_manager``
@@ -84,4 +84,3 @@ Example
API API
--- ---

View File

@@ -22,7 +22,7 @@ struct sample_fragment_t {
static const lv_fragment_class_t sample_cls = { static const lv_fragment_class_t sample_cls = {
.constructor_cb = sample_fragment_ctor, .constructor_cb = sample_fragment_ctor,
.create_obj_cb = sample_fragment_create_obj, .create_obj_cb = sample_fragment_create_obj,
.instance_size = sizeof(struct sample_fragment_t) .instance_size = sizeof(struct sample_fragment_t),
}; };
void lv_example_fragment_1(void) void lv_example_fragment_1(void)

View File

@@ -28,7 +28,7 @@ typedef struct sample_fragment_t {
static const lv_fragment_class_t sample_cls = { static const lv_fragment_class_t sample_cls = {
.constructor_cb = sample_fragment_ctor, .constructor_cb = sample_fragment_ctor,
.create_obj_cb = sample_fragment_create_obj, .create_obj_cb = sample_fragment_create_obj,
.instance_size = sizeof(sample_fragment_t) .instance_size = sizeof(sample_fragment_t),
}; };
static lv_obj_t * container = NULL; static lv_obj_t * container = NULL;