Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize clang-format coding styles based on Mozilla template (#770) #351

Merged
merged 1 commit into from
Oct 6, 2021

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 wenyong.huang@intel.com

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 <wenyong.huang@intel.com>
@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