From fae7cbdadbeb4f0dc8fe073944fb8a819c102803 Mon Sep 17 00:00:00 2001 From: heister Date: Tue, 20 Nov 2012 20:55:18 +0000 Subject: [PATCH] temporary solution for make indent target git-svn-id: https://svn.dealii.org/branches/branch_cmake@27616 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/Makefile | 8 ++++++++ deal.II/contrib/utilities/astyle.rc | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 deal.II/Makefile create mode 100644 deal.II/contrib/utilities/astyle.rc diff --git a/deal.II/Makefile b/deal.II/Makefile new file mode 100644 index 0000000000..05ab97b004 --- /dev/null +++ b/deal.II/Makefile @@ -0,0 +1,8 @@ +style-h-files:= $(wildcard include/deal.II/*/*.h) +style-cc-files:= $(wildcard source/*/*.cc) + +default: + +indent: + @echo "============ Indenting all files" + astyle --options=contrib/utilities/astyle.rc $(style-h-files) $(style-cc-files) diff --git a/deal.II/contrib/utilities/astyle.rc b/deal.II/contrib/utilities/astyle.rc new file mode 100644 index 0000000000..35e5a7755c --- /dev/null +++ b/deal.II/contrib/utilities/astyle.rc @@ -0,0 +1,20 @@ +# astyle 2.02 indentation style for deal.II +# Run astyle in a command like +# astyle --options=lib/astyle.rc *cc *h + +--style=gnu + +--convert-tabs +--indent-preprocessor +--indent=spaces=2 +--indent-namespaces +--min-conditional-indent=0 +--pad-header + +# write things as 'char *p', not 'char* p' +--align-pointer=name +--align-reference=name + +--max-instatement-indent=60 +--suffix=none +--quiet -- 2.39.5