From 7563780a791baf24238717682ed777b29d240b12 Mon Sep 17 00:00:00 2001 From: markuspg Date: Sat, 17 Feb 2018 19:31:08 +0100 Subject: [PATCH] Add code formatting definition to project Enable "Automatic Formatting on File Save" in Qt Creator to utilize this. --- Labcontrol.pro | 3 +++ codingStyle.astylerc | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 codingStyle.astylerc diff --git a/Labcontrol.pro b/Labcontrol.pro index 64cf3b4..e38b6ce 100755 --- a/Labcontrol.pro +++ b/Labcontrol.pro @@ -42,6 +42,9 @@ FORMS += src/localzleafstarter.ui \ QMAKE_CXXFLAGS += -std=c++11 +DISTFILES += \ + codingStyle.astylerc + OTHER_FILES += \ labcontrol.desktop \ LICENSE \ diff --git a/codingStyle.astylerc b/codingStyle.astylerc new file mode 100644 index 0000000..b639594 --- /dev/null +++ b/codingStyle.astylerc @@ -0,0 +1,10 @@ +--style=kr +--indent=spaces=4 +--align-pointer=name +--align-reference=name +--convert-tabs +--attach-namespaces +--max-code-length=100 +--max-instatement-indent=120 +--pad-header +--pad-oper