From: Daniel Arndt Date: Thu, 24 Aug 2023 12:42:42 +0000 (-0400) Subject: clang-format: Use QualifierAlignment: Left X-Git-Tag: relicensing~555^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15925%2Fhead;p=dealii.git clang-format: Use QualifierAlignment: Left --- diff --git a/.clang-format b/.clang-format index aa1f77a7e5..265b96679e 100644 --- a/.clang-format +++ b/.clang-format @@ -160,6 +160,8 @@ PointerAlignment: Right ReflowComments: true CommentPragmas: '( \| |\*--|
  • |@ref | @p |@param |@name |@returns |@warning |@ingroup |@author |@date |@related |@relates |@relatesalso |@deprecated |@image |@return |@brief |@attention |@copydoc |@addtogroup |@todo |@tparam |@see |@note |@skip |@skipline |@until |@line |@dontinclude |@include)' +QualifierAlignment: Left + SortIncludes: true SortUsingDeclarations: true diff --git a/cmake/scripts/expand_instantiations.cc b/cmake/scripts/expand_instantiations.cc index 6b01f46e24..9e4a2f77e3 100644 --- a/cmake/scripts/expand_instantiations.cc +++ b/cmake/scripts/expand_instantiations.cc @@ -241,7 +241,7 @@ delete_empty_entries(const std::list &list) // determine whether a given substring at position #pos and length #length // in the string #text is a real token, i.e. not just part of another word bool -is_real_token(const std::string & text, +is_real_token(const std::string &text, const std::string::size_type pos, const std::string::size_type length) { @@ -362,7 +362,7 @@ read_expansion_lists(const std::string &filename) // produce all combinations of substitutions of the tokens given in the // #substitutions list in #text and output it to std::cout void -substitute(const std::string & text, +substitute(const std::string &text, const std::list> &substitutions) { // do things recursively: if the list of substitutions has a single diff --git a/examples/.clang-format b/examples/.clang-format index 1d3b95af1b..77fb27bec5 100644 --- a/examples/.clang-format +++ b/examples/.clang-format @@ -85,6 +85,8 @@ PenaltyBreakBeforeFirstCallParameter: 90 PointerAlignment: Right +QualifierAlignment: Left + ReflowComments: true CommentPragmas: '( \| |\*--|
  • |@ref | @p |@param |@name |@returns |@warning |@ingroup |@author |@date |@related |@relates |@relatesalso |@deprecated |@image |@return |@brief |@attention |@copydoc |@addtogroup |@todo |@tparam |@see |@note |@skip |@skipline |@until |@line |@dontinclude |@include|@sect1|@sect2|@sect3|@sect4)'