]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix indentation.
authorDavid Wells <wellsd2@rpi.edu>
Sun, 8 Apr 2018 22:38:56 +0000 (18:38 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 9 Apr 2018 12:27:39 +0000 (08:27 -0400)
include/deal.II/base/exceptions.h

index 55f4c0dfb71ad267d0e5f49f0c70010edcc05f43..33341335a3f2eaa36b2f600b65aaaf0a13012f6c 100644 (file)
@@ -1111,20 +1111,20 @@ namespace deal_II_exceptions
 #ifdef DEBUG
 #  ifdef DEAL_II_HAVE_BUILTIN_EXPECT
 #    define Assert(cond, exc)                                                  \
-{                                                                              \
-  if (__builtin_expect(!(cond), false))                                        \
-    ::dealii::deal_II_exceptions::internals:: issue_error_noreturn(            \
-        ::dealii::deal_II_exceptions::internals::abort_on_exception,           \
-        __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
-}
+  {                                                                            \
+    if (__builtin_expect(!(cond), false))                                      \
+      ::dealii::deal_II_exceptions::internals:: issue_error_noreturn(          \
+          ::dealii::deal_II_exceptions::internals::abort_on_exception,         \
+          __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);          \
+  }
 #  else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #    define Assert(cond, exc)                                                  \
-{                                                                              \
-  if (!(cond))                                                                 \
-    ::dealii::deal_II_exceptions::internals:: issue_error_noreturn(            \
-        ::dealii::deal_II_exceptions::internals::abort_on_exception,           \
-        __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
-}
+  {                                                                            \
+    if (!(cond))                                                               \
+      ::dealii::deal_II_exceptions::internals:: issue_error_noreturn(          \
+          ::dealii::deal_II_exceptions::internals::abort_on_exception,         \
+          __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);          \
+  }
 #  endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #else
 #define Assert(cond, exc)                                                      \
@@ -1151,20 +1151,20 @@ namespace deal_II_exceptions
 #ifdef DEBUG
 #  ifdef DEAL_II_HAVE_BUILTIN_EXPECT
 #    define AssertNothrow(cond, exc)                                           \
-{                                                                              \
-  if (__builtin_expect(!(cond), false))                                        \
-    ::dealii::deal_II_exceptions::internals::issue_error_nothrow(              \
-        ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception,   \
-        __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
-}
+  {                                                                              \
+    if (__builtin_expect(!(cond), false))                                        \
+      ::dealii::deal_II_exceptions::internals::issue_error_nothrow(              \
+          ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception,   \
+          __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
+  }
 #  else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #    define AssertNothrow(cond, exc)                                           \
-{                                                                              \
-  if (!(cond))                                                                 \
-    ::dealii::deal_II_exceptions::internals::issue_error_nothrow(              \
-        ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception,   \
-        __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
-}
+  {                                                                              \
+    if (!(cond))                                                                 \
+      ::dealii::deal_II_exceptions::internals::issue_error_nothrow(              \
+          ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception,   \
+          __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
+  }
 #  endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #else
 #define AssertNothrow(cond, exc)                                               \
@@ -1188,20 +1188,20 @@ namespace deal_II_exceptions
  */
 #ifdef DEAL_II_HAVE_BUILTIN_EXPECT
 #define AssertThrow(cond, exc)                                                 \
-{                                                                              \
-  if (__builtin_expect(!(cond), false))                                        \
-    ::dealii::deal_II_exceptions::internals:: issue_error_noreturn(            \
-        ::dealii::deal_II_exceptions::internals::throw_on_exception,           \
-        __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
-}
+  {                                                                            \
+    if (__builtin_expect(!(cond), false))                                      \
+      ::dealii::deal_II_exceptions::internals:: issue_error_noreturn(          \
+          ::dealii::deal_II_exceptions::internals::throw_on_exception,         \
+          __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);          \
+  }
 #else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 #define AssertThrow(cond, exc)                                                 \
-{                                                                              \
-  if (!(cond))                                                                 \
-    ::dealii::deal_II_exceptions::internals::issue_error_noreturn(             \
-        ::dealii::deal_II_exceptions::internals::throw_on_exception,           \
-        __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);            \
-}
+  {                                                                            \
+    if (!(cond))                                                               \
+      ::dealii::deal_II_exceptions::internals::issue_error_noreturn(           \
+          ::dealii::deal_II_exceptions::internals::throw_on_exception,         \
+          __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc);          \
+  }
 #endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/
 
 /**
@@ -1215,7 +1215,7 @@ namespace deal_II_exceptions
  * @author Guido Kanschat 2007
  */
 #define AssertDimension(dim1,dim2) \
-Assert((dim1) == (dim2), dealii::ExcDimensionMismatch((dim1),(dim2)))
+  Assert((dim1) == (dim2), dealii::ExcDimensionMismatch((dim1),(dim2)))
 
 
 /**
@@ -1225,9 +1225,9 @@ Assert((dim1) == (dim2), dealii::ExcDimensionMismatch((dim1),(dim2)))
  * @ingroup Exceptions
  * @author Guido Kanschat 2010
  */
-#define AssertVectorVectorDimension(vec,dim1,dim2)                             \
-AssertDimension((vec).size(), (dim1));                                         \
-for (unsigned int i=0;i<dim1;++i) {AssertDimension((vec)[i].size(), (dim2));}  \
+#define AssertVectorVectorDimension(vec,dim1,dim2)                              \
+  AssertDimension((vec).size(), (dim1));                                        \
+  for (unsigned int i=0;i<dim1;++i) {AssertDimension((vec)[i].size(), (dim2));}
 
 namespace internal
 {
@@ -1251,10 +1251,10 @@ namespace internal
  * @author Guido Kanschat 2007
  */
 #define AssertIndexRange(index,range)                                          \
-Assert((index) < (range),                                                      \
-dealii::ExcIndexRangeType<typename ::dealii::internal::argument_type<          \
-void(typename std::common_type<decltype(index),                                \
-     decltype(range)>::type)>::type>((index),0,(range)))
+  Assert((index) < (range),                                                    \
+         dealii::ExcIndexRangeType<typename ::dealii::internal::argument_type< \
+         void(typename std::common_type<decltype(index),                       \
+              decltype(range)>::type)>::type>((index),0,(range)))
 
 /**
  * An assertion that checks whether a number is finite or not. We explicitly
@@ -1266,8 +1266,8 @@ void(typename std::common_type<decltype(index),                                \
  * @author Wolfgang Bangerth, 2015
  */
 #define AssertIsFinite(number)                                                 \
-Assert(dealii::numbers::is_finite(number),                                     \
-dealii::ExcNumberNotFinite(std::complex<double>(number)))
+  Assert(dealii::numbers::is_finite(number),                                   \
+         dealii::ExcNumberNotFinite(std::complex<double>(number)))
 
 #ifdef DEAL_II_WITH_MPI
 /**
@@ -1281,7 +1281,7 @@ dealii::ExcNumberNotFinite(std::complex<double>(number)))
  * @author David Wells, 2016
  */
 #define AssertThrowMPI(error_code) \
-AssertThrow(error_code == MPI_SUCCESS, dealii::ExcMPI(error_code))
+  AssertThrow(error_code == MPI_SUCCESS, dealii::ExcMPI(error_code))
 #else
 #define AssertThrowMPI(error_code) {}
 #endif // DEAL_II_WITH_MPI

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.