Skip to content

Conversation

@wenyongh
Copy link
Owner

@wenyongh wenyongh commented Oct 6, 2021

Customize clang-format coding styles for C source files based on Mozilla template.
To check whether the C source codes are well formatted:

$ cd ${wamr-root}
$ clang-format --Werror --dry-run --style=file path/to/file

To format the C source codes in place

$ cd ${wamr_root}
$ clang-format -i --style=file path/to/file

Signed-off-by: Wenyong Huang [email protected]

Customize clang-format coding styles for C source files based on Mozilla template.
To check whether the C source codes are well formatted:
``` bash
$ cd ${wamr-root}
$ clang-format --Werror --dry-run --style=file path/to/file
```
To format the C source codes in place
``` bash
$ cd ${wamr_root}
$ clang-format -i --style=file path/to/file
```

Signed-off-by: Wenyong Huang <[email protected]>
@wenyongh wenyongh merged commit 9cc905a into wenyongh:main Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant