Add clang-format and editorconfig

This commit is contained in:
Anthony Rose 2021-09-25 15:20:50 +01:00
parent 3c5db7e182
commit 5710858b18
3 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,19 @@
---
Language: Cpp
AccessModifierOffset: -4
AlignTrailingComments: true
AlwaysBreakAfterReturnType: None
BreakBeforeBraces: Linux
ColumnLimit: 100
ContinuationIndentWidth: 4
IndentWidth: 8
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: 2
Standard: Cpp11
TabWidth: 8
UseTab: ForIndentation
...

View file

@ -0,0 +1,7 @@
[*.{c,cpp,h}]
indent_style = tab
indent_size = tab
tab_width = 8
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

View file

@ -45,6 +45,14 @@
ansible.builtin.copy: ansible.builtin.copy:
src: quiltrc-dpkg src: quiltrc-dpkg
dest: "{{ ansible_env.HOME }}/.quiltrc-dpkg" dest: "{{ ansible_env.HOME }}/.quiltrc-dpkg"
- name: Copy .editorconfig
ansible.builtin.copy:
src: editorconfig
dest: "{{ ansible_env.HOME }}/.editorconfig"
- name: Copy .clang-format
ansible.builtin.copy:
src: clang-format
dest: "{{ ansible_env.HOME }}/.clang-format"
- name: Copy docutils setup script - name: Copy docutils setup script
ansible.builtin.copy: ansible.builtin.copy:
src: docutils-setup.sh src: docutils-setup.sh