File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ignore third_party code from clang-format checks
2
+ src/third_party/*
Original file line number Diff line number Diff line change @@ -36,6 +36,15 @@ It's possible to exclude paths from the recursive search::
36
36
--exclude '*_test.cpp' \
37
37
src include foo.cpp
38
38
39
+ These exclude rules can be put in a ``.clang-format-ignore `` file,
40
+ which also supports comments.
41
+
42
+ An example configuration is available in this repo::
43
+
44
+ $ cat .clang-format-ignore (master)*
45
+ # ignore third_party code from clang-format checks
46
+ src/third_party/*
47
+
39
48
40
49
Continuous integration
41
50
======================
Original file line number Diff line number Diff line change
1
+ // This code is ignored by the .clang-format-ignore file.
2
+
3
+ int qux (bool cond) {
4
+ if (cond){
5
+ return - 1 ;
6
+ }
7
+
8
+ return 0 ;
9
+ }
You can’t perform that action at this time.
0 commit comments