From 00eae9ce39ead7501288ba9ae4f35345eb1654f0 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 24 Aug 2023 08:42:42 -0400 Subject: [PATCH] clang-format: Use QualifierAlignment: Left --- .clang-format | 2 ++ cmake/scripts/expand_instantiations.cc | 4 ++-- examples/.clang-format | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) 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)' -- 2.39.5