Skip to content

Commit cb21894

Browse files
update CONTRIBUTING.md (#191)
1 parent 569313f commit cb21894

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CONTRIBUTING.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ Suport for clang-format is built-in since Visual Studio 2017 15.7 and CLion 2019
99
The .clang-format file in the repository will be automatically detected and formatting is done as you type, or triggered when pressing the format hotkey.
1010

1111
### Bash
12-
First install clang-format. Instructions therefore can be found on the web. To format you can run this command in bash:
12+
First install clang-format. Instructions therefore can be found on the web.
13+
To format your changes since branching off `dev`, you can run this command in bash:
1314
```
14-
find -iname *.cu -o -iname *.hpp | xargs clang-format-10 -i
15+
git clang-format dev
16+
```
17+
To format all code in your working copy, you can run this command in bash:
18+
```
19+
find -iname *.cpp -o -iname *.hpp | xargs clang-format -i
1520
```

0 commit comments

Comments
 (0)