From 158ba89cd300a011efb9a27517e65ba52217a692 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Fri, 14 Jun 2019 14:26:08 +0300 Subject: [PATCH] Added configuration files for git and automatic formatting --- .clang-format | 9 +++++++++ .gitattributes | 14 ++++++++++++++ .gitignore | 22 ++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 .clang-format create mode 100644 .gitattributes create mode 100644 .gitignore diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..5dafe6c --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +BasedOnStyle: LLVM +IndentWidth: 4 +UseTab: Never +BreakBeforeBraces: Stroustrup +AlignConsecutiveAssignments: true +AlwaysBreakAfterReturnType: TopLevelDefinitions +PointerAlignment: Left +BreakBeforeBinaryOperators: None +PenaltyBreakAssignment: 10000 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a1a027f --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc1659e --- /dev/null +++ b/.gitignore @@ -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~ +*~ \ No newline at end of file