Add clang-format and editorconfig
This commit is contained in:
parent
3c5db7e182
commit
5710858b18
3 changed files with 34 additions and 0 deletions
19
roles/home-cli/files/clang-format
Normal file
19
roles/home-cli/files/clang-format
Normal 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
|
||||
...
|
7
roles/home-cli/files/editorconfig
Normal file
7
roles/home-cli/files/editorconfig
Normal 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
|
|
@ -45,6 +45,14 @@
|
|||
ansible.builtin.copy:
|
||||
src: 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
|
||||
ansible.builtin.copy:
|
||||
src: docutils-setup.sh
|
||||
|
|
Loading…
Reference in a new issue