Have clang-format ignore auto-generated files
PATCH v3 1/1 Have clang-format ignore auto-generated files
Add .clang-format-ignore files listing the auto-generated files to ignore taken from the .gitignore files.
With the exception of libsemanage, place the .clang-format-ignore files in the same directory as the .gitignore files. For libsemanage which has a .gitignore in both its top level and src directories, just place one in the src directory.
---
v3: Add missing newline to end of libsemanage/src/.clang-format-ignore
v2: Use multiple files instead of just one in the top level directory.
checkpolicy/.clang-format-ignore | 3 +++ libselinux/src/.clang-format-ignore | 3 +++ libsemanage/src/.clang-format-ignore | 6 ++++++ libsepol/cil/.clang-format-ignore | 1 + 4 files changed, 13 insertions(+) create mode 100644 checkpolicy/.clang-format-ignore create mode 100644 libselinux/src/.clang-format-ignore create mode 100644 libsemanage/src/.clang-format-ignore create mode 100644 libsepol/cil/.clang-format-ignore
checkpolicy/.clang-format-ignore new file +3 -0
@@ -0,0 +1,3 @@ +lex.yy.c +y.tab.c +y.tab.h
libselinux/src/.clang-format-ignore new file +3 -0
@@ -0,0 +1,3 @@ +selinux.py +selinuxswig_python_wrap.c +selinuxswig_ruby_wrap.c
libsemanage/src/.clang-format-ignore new file +6 -0
@@ -0,0 +1,6 @@ +conf-parse.c +conf-parse.h +conf-scan.c +semanageswig_wrap.c +semanage.py +semanageswig_ruby_wrap.c
libsepol/cil/.clang-format-ignore new file +1 -0
@@ -0,0 +1 @@ +src/cil_lexer.c
Signature · 1 line
2.54.0
Quoted 10 lines · James Carter
Add .clang-format-ignore files listing the auto-generated files to ignore taken from the .gitignore files.
With the exception of libsemanage, place the .clang-format-ignore files in the same directory as the .gitignore files. For libsemanage which has a .gitignore in both its top level and src directories, just place one in the src directory.
Signed-off-by James Carter <[email protected]>
Quoted 54 lines
---
v3: Add missing newline to end of libsemanage/src/.clang-format-ignore
v2: Use multiple files instead of just one in the top level directory.checkpolicy/.clang-format-ignore | 3 +++ libselinux/src/.clang-format-ignore | 3 +++ libsemanage/src/.clang-format-ignore | 6 ++++++ libsepol/cil/.clang-format-ignore | 1 + 4 files changed, 13 insertions(+) create mode 100644 checkpolicy/.clang-format-ignore create mode 100644 libselinux/src/.clang-format-ignore create mode 100644 libsemanage/src/.clang-format-ignore create mode 100644 libsepol/cil/.clang-format-ignorecheckpolicy/.clang-format-ignore new file +3
-0@@ -0,0 +1,3 @@ +lex.yy.c +y.tab.c +y.tab.hlibselinux/src/.clang-format-ignore new file +3
-0@@ -0,0 +1,3 @@ +selinux.py +selinuxswig_python_wrap.c +selinuxswig_ruby_wrap.clibsemanage/src/.clang-format-ignore new file +6
-0@@ -0,0 +1,6 @@ +conf-parse.c +conf-parse.h +conf-scan.c +semanageswig_wrap.c +semanage.py +semanageswig_ruby_wrap.clibsepol/cil/.clang-format-ignore new file +1
-1@@ -0,0 +1 @@ +src/cil_lexer.c --2.54.0
Quoted 9 lines · James Carter
Add .clang-format-ignore files listing the auto-generated files to ignore taken from the .gitignore files.
With the exception of libsemanage, place the .clang-format-ignore files in the same directory as the .gitignore files. For libsemanage which has a .gitignore in both its top level and src directories, just place one in the src directory.
Signed-off-by James Carter <[email protected]>
Quoted 51 lines
---
v3: Add missing newline to end of libsemanage/src/.clang-format-ignore
v2: Use multiple files instead of just one in the top level directory.checkpolicy/.clang-format-ignore | 3 +++ libselinux/src/.clang-format-ignore | 3 +++ libsemanage/src/.clang-format-ignore | 6 ++++++ libsepol/cil/.clang-format-ignore | 1 + 4 files changed, 13 insertions(+) create mode 100644 checkpolicy/.clang-format-ignore create mode 100644 libselinux/src/.clang-format-ignore create mode 100644 libsemanage/src/.clang-format-ignore create mode 100644 libsepol/cil/.clang-format-ignorecheckpolicy/.clang-format-ignore new file +3
-0@@ -0,0 +1,3 @@ +lex.yy.c +y.tab.c +y.tab.hlibselinux/src/.clang-format-ignore new file +3
-0@@ -0,0 +1,3 @@ +selinux.py +selinuxswig_python_wrap.c +selinuxswig_ruby_wrap.clibsemanage/src/.clang-format-ignore new file +6
-0@@ -0,0 +1,6 @@ +conf-parse.c +conf-parse.h +conf-scan.c +semanageswig_wrap.c +semanage.py +semanageswig_ruby_wrap.clibsepol/cil/.clang-format-ignore new file +1
-0@@ -0,0 +1 @@ +src/cil_lexer.c
Quoted 5 lines · Rahul Sandhu
Quoted 3 lines · James Carter
Add .clang-format-ignore files listing the auto-generated files to ignore taken from the .gitignore files.
Quoted 9 lines
Quoted 6 lines
With the exception of libsemanage, place the .clang-format-ignore files in the same directory as the .gitignore files. For libsemanage which has a .gitignore in both its top level and src directories, just place one in the src directory.
Signed-off-by James Carter <[email protected]>Acked-by Rahul Sandhu <[email protected]>
Merged.
Jim
Quoted 52 lines
Quoted 51 lines
---
v3: Add missing newline to end of libsemanage/src/.clang-format-ignore
v2: Use multiple files instead of just one in the top level directory.checkpolicy/.clang-format-ignore | 3 +++ libselinux/src/.clang-format-ignore | 3 +++ libsemanage/src/.clang-format-ignore | 6 ++++++ libsepol/cil/.clang-format-ignore | 1 + 4 files changed, 13 insertions(+) create mode 100644 checkpolicy/.clang-format-ignore create mode 100644 libselinux/src/.clang-format-ignore create mode 100644 libsemanage/src/.clang-format-ignore create mode 100644 libsepol/cil/.clang-format-ignorecheckpolicy/.clang-format-ignore new file +3
-0@@ -0,0 +1,3 @@ +lex.yy.c +y.tab.c +y.tab.hlibselinux/src/.clang-format-ignore new file +3
-0@@ -0,0 +1,3 @@ +selinux.py +selinuxswig_python_wrap.c +selinuxswig_ruby_wrap.clibsemanage/src/.clang-format-ignore new file +6
-0@@ -0,0 +1,6 @@ +conf-parse.c +conf-parse.h +conf-scan.c +semanageswig_wrap.c +semanage.py +semanageswig_ruby_wrap.clibsepol/cil/.clang-format-ignore new file +1
-0@@ -0,0 +1 @@ +src/cil_lexer.c