Skip to content

Commit ff83d95

Browse files
committed
Add example for using clang-format
1 parent f285d58 commit ff83d95

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CONTRIBUTING.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,12 @@ Similar to other markdown languages, most development environments support live
3838

3939
=== ClangFormat
4040

41-
To ensure a consistent code style, we use a link:https://clang.llvm.org/docs/ClangFormat.html[ClangFormat] definition file. If you make changes to source code, make sure that file is used by your IDE or manually apply ClangFormat to the files you have changed.
41+
To ensure a consistent code style, we use a link:https://clang.llvm.org/docs/ClangFormat.html[ClangFormat] definition file. If you make changes to source code, make sure that file is used by your IDE or manually apply ClangFormat to the files you have changed.
42+
43+
Example:
44+
45+
[,bash]
46+
----
47+
cd attachments
48+
clang-format -i -- 15_hello_triangle.*
49+
----

0 commit comments

Comments
 (0)