Added configuration files for git and automatic formatting

This commit is contained in:
jpekkila
2019-06-14 14:26:08 +03:00
parent 0e48766a68
commit 158ba89cd3
3 changed files with 45 additions and 0 deletions

9
.clang-format Normal file
View File

@@ -0,0 +1,9 @@
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
BreakBeforeBraces: Stroustrup
AlignConsecutiveAssignments: true
AlwaysBreakAfterReturnType: TopLevelDefinitions
PointerAlignment: Left
BreakBeforeBinaryOperators: None
PenaltyBreakAssignment: 10000

14
.gitattributes vendored Normal file
View File

@@ -0,0 +1,14 @@
# Attribute file for Git to avoid superficial/invisible changes
# caused by modifying the code with different text editors / operating systems
# See https://help.github.com/en/articles/dealing-with-line-endings
#Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
*.cu text
*.cuh text
*.txt text

22
.gitignore vendored Normal file
View File

@@ -0,0 +1,22 @@
asth-test.out.*
*.pyc
symb-test.out.*
*.o
DONE
*.aux
*.dvi
*.log
*.out
*.swp
*.tex~
*.txt~
*.bib~
*eps-converted-to.pdf
scripts/py_animate_data~
scripts/py_compare_snapshot~
scripts/py_show_ts~
scripts/py_visual_data~
*.blg
*.spl
makefile~
*~