You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,17 @@
2
2
3
3
## Source Code Formatting¶
4
4
5
+
### C/C++ code style
6
+
7
+
We use [clang-format](https://clang.llvm.org/docs/ClangFormat.html) code formatter.
8
+
9
+
Install: `pip install clang`
10
+
11
+
- Revision: `10.0.1`
12
+
- See the default configuration used by dpCtl in `.clang-format`.
13
+
14
+
Run before each commit: `clang-format -style=file -i dpctl-capi/include/*.h dpctl-capi/include/Support/*.h dpctl-capi/source/*.cpp dpctl-capi/tests/*.cpp dpctl-capi/helper/include/*.h dpctl-capi/helper/source/*.cpp`
0 commit comments