Have clang-format ignore auto-generated files
PATCH v2 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.
---
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
Stephen Smalley
maintainerQuoted 47 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]>---
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 +0
-0
libsemanage/src/.clang-format-ignore line 6
Quoted 7 lines
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
Missing newline
Quoted 11 lines
libsepol/cil/.clang-format-ignore new file +1
-1@@ -0,0 +1 @@ +src/cil_lexer.c --2.54.0