]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow for braced initialization in astyle.rc 5871/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 6 Feb 2018 21:28:37 +0000 (22:28 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 6 Feb 2018 21:28:37 +0000 (22:28 +0100)
contrib/styles/astyle.rc
source/dummy.cc

index 91c5c9221cae6036a186303e304fad30403fceb3..86650e7db1bdfcc295796568faef856b5983c798 100644 (file)
@@ -21,6 +21,7 @@
 --indent-preprocessor
 --indent=spaces=2
 --indent-namespaces
+--keep-one-line-blocks
 --min-conditional-indent=0
 --pad-header
 
index 19ae7b02a46fa9d8cbbcb8f8043b8438631de1d0..e8337b898519e8c2f124d0dbc99919f72d086211 100644 (file)
@@ -20,7 +20,7 @@
  * the generated Xcode project.
  */
 
-const int global_symbol_42 = 42;
+const int global_symbol_42 {42};
 void use_global_symbol_42()
 {
   (void) global_symbol_42;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.