Skip to contentSkip to conversation

Have clang-format ignore auto-generated files

PATCH Superseded James Carter 2 participants 2 messages Jun 4 SELinux security module

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
new file mode 100644
index 00000000..f6b7b435
@@ -0,0 +1,3 @@
+lex.yy.c
+y.tab.c
+y.tab.h
libselinux/src/.clang-format-ignore new file +3 -0
new file mode 100644
index 00000000..001f20b0
@@ -0,0 +1,3 @@
+selinux.py
+selinuxswig_python_wrap.c
+selinuxswig_ruby_wrap.c
libsemanage/src/.clang-format-ignore new file +6 -0
new file mode 100644
index 00000000..c3d35d46
@@ -0,0 +1,6 @@
+conf-parse.c
+conf-parse.h
+conf-scan.c
+semanageswig_wrap.c
+semanage.py
+semanageswig_ruby_wrap.c
\ No newline at end of file
libsepol/cil/.clang-format-ignore new file +1 -0
new file mode 100644
index 00000000..3eb2902f
@@ -0,0 +1 @@
+src/cil_lexer.c
Signature · 1 line
2.54.0
maintainer
#1 lore raw
Quoted 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.

---
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
new file mode 100644
index 00000000..f6b7b435
@@ -0,0 +1,3 @@
+lex.yy.c
+y.tab.c
+y.tab.h
libselinux/src/.clang-format-ignore new file +3 -0
new file mode 100644
index 00000000..001f20b0
@@ -0,0 +1,3 @@
+selinux.py
+selinuxswig_python_wrap.c
+selinuxswig_ruby_wrap.c
libsemanage/src/.clang-format-ignore new file +0 -0
new file mode 100644
index 00000000..c3d35d46

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
\ No newline at end of file

Missing newline

Quoted 11 lines
libsepol/cil/.clang-format-ignore new file +1 -1
new file mode 100644
index 00000000..3eb2902f
@@ -0,0 +1 @@
+src/cil_lexer.c
--

2.54.0