Skip to contentSkip to conversation

Have clang-format ignore auto-generated files

PATCH In review James Carter 3 participants 4 messages Jun 4 – Jun 5 SELinux security module

lore
Share & tools
lore
#0 lore raw

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
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..2d2d8e8b
@@ -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
new file mode 100644
index 00000000..3eb2902f
@@ -0,0 +1 @@
+src/cil_lexer.c
Signature · 1 line
2.54.0
maintainer Acked-by on v3 1/1
#1 lore raw
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.

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-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..2d2d8e8b
@@ -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 -1
new file mode 100644
index 00000000..3eb2902f
@@ -0,0 +1 @@
+src/cil_lexer.c
--

2.54.0

Acked-by on v3 1/1
#2 lore raw
In reply to James Carter
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.

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-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..2d2d8e8b
@@ -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
new file mode 100644
index 00000000..3eb2902f
@@ -0,0 +1 @@
+src/cil_lexer.c
#3 lore raw
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.

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-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..2d2d8e8b
@@ -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
new file mode 100644
index 00000000..3eb2902f
@@ -0,0 +1 @@
+src/cil_lexer.c