diff --git a/doc/codingStyleGuide.org b/doc/codingStyleGuide.org index b8d1b0d98a..8714c3373a 100644 --- a/doc/codingStyleGuide.org +++ b/doc/codingStyleGuide.org @@ -86,7 +86,7 @@ // - 0: different // - +1: identical // - -1: same face, but different orientation - static inline int compare(const triFace&, const triFace&); + static int compare(const triFace&, const triFace&); #+end_src or #+begin_src C++ @@ -95,7 +95,7 @@ // - 0: different // - +1: identical // - -1: same face, but different orientation - static inline int compare(const triFace&, const triFace&); + static int compare(const triFace&, const triFace&); #+end_src *not* #+begin_src C++ @@ -103,7 +103,7 @@ // - 0: different // - +1: identical // - -1: same face, but different orientation - static inline int compare(const triFace&, const triFace&); + static int compare(const triFace&, const triFace&); #+end_src + List can be nested for example #+begin_src C++ diff --git a/src/OpenFOAM/containers/Bits/PackedList/PackedList.H b/src/OpenFOAM/containers/Bits/PackedList/PackedList.H index 017d7f8e1b..700ffb6db5 100644 --- a/src/OpenFOAM/containers/Bits/PackedList/PackedList.H +++ b/src/OpenFOAM/containers/Bits/PackedList/PackedList.H @@ -229,7 +229,7 @@ public: inline constexpr PackedList() noexcept; //- Construct for given number of elements, initializes values to 0 - explicit inline PackedList(const label numElem); + inline explicit PackedList(const label numElem); //- Construct for given number of elements, and the specified //- value for each element @@ -245,10 +245,10 @@ public: inline PackedList(PackedList&& rhs); //- Construct from a list of values - explicit inline PackedList(const labelUList& values); + inline explicit PackedList(const labelUList& values); //- Construct from a list of values - explicit inline PackedList(const labelUIndList& values); + inline explicit PackedList(const labelUIndList& values); //- Clone inline autoPtr> clone() const; diff --git a/src/OpenFOAM/containers/Bits/bitSet/bitSet.H b/src/OpenFOAM/containers/Bits/bitSet/bitSet.H index 38b0181a82..9f033ca297 100644 --- a/src/OpenFOAM/containers/Bits/bitSet/bitSet.H +++ b/src/OpenFOAM/containers/Bits/bitSet/bitSet.H @@ -142,7 +142,7 @@ public: explicit bitSet(Istream& is); //- Construct with given size, with all bits set to 0 - explicit inline bitSet(const label n); + inline explicit bitSet(const label n); //- Construct with given size and value for all elements inline bitSet(const label n, const bool val); @@ -154,7 +154,7 @@ public: inline bitSet(bitSet&& bitset); //- Construct from a list of bools - explicit inline bitSet(const UList& bools); + inline explicit bitSet(const UList& bools); //- Construct with given size with all bits set to 0, //- subsequently add specified locations as 1. @@ -170,11 +170,11 @@ public: //- Construct with automatic sizing (filled with 0), //- and populate with specified locations as 1. - explicit inline bitSet(const labelUList& locations); + inline explicit bitSet(const labelUList& locations); //- Construct with automatic sizing (filled with 0), //- and populate with specified locations as 1. - explicit inline bitSet(const labelUIndList& locations); + inline explicit bitSet(const labelUIndList& locations); //- Clone inline autoPtr clone() const; diff --git a/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTable.H b/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTable.H index 9dedb2a0ff..990e8537c2 100644 --- a/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTable.H +++ b/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTable.H @@ -96,7 +96,7 @@ public: inline HashPtrTable(); //- Construct given initial table capacity - explicit inline HashPtrTable(const label size); + inline explicit HashPtrTable(const label size); //- Construct from Istream using given Istream constructor class template diff --git a/src/OpenFOAM/containers/Lists/DynamicList/DynamicList.H b/src/OpenFOAM/containers/Lists/DynamicList/DynamicList.H index 4fa4a0fbb4..055fd7137c 100644 --- a/src/OpenFOAM/containers/Lists/DynamicList/DynamicList.H +++ b/src/OpenFOAM/containers/Lists/DynamicList/DynamicList.H @@ -118,7 +118,7 @@ public: inline constexpr DynamicList() noexcept; //- Construct an empty list with given reserve size. - explicit inline DynamicList(const label nElem); + inline explicit DynamicList(const label nElem); //- Construct with given size and value for all elements. inline DynamicList(const label nElem, const T& val); @@ -135,7 +135,7 @@ public: //- Construct from UList. Size set to UList size. // Also constructs from DynamicList with different sizing parameters. - explicit inline DynamicList(const UList& lst); + inline explicit DynamicList(const UList& lst); //- Construct from a FixedList template @@ -147,10 +147,10 @@ public: inline DynamicList(InputIterator begIter, InputIterator endIter); //- Construct from an initializer list. Size set to list size. - explicit inline DynamicList(std::initializer_list lst); + inline explicit DynamicList(std::initializer_list lst); //- Construct from UIndirectList. Size set to UIndirectList size. - explicit inline DynamicList(const UIndirectList& lst); + inline explicit DynamicList(const UIndirectList& lst); //- Move construct. inline DynamicList(DynamicList&& lst); diff --git a/src/OpenFOAM/containers/Lists/FixedList/FixedList.H b/src/OpenFOAM/containers/Lists/FixedList/FixedList.H index b6f25a5021..bf954ce2bf 100644 --- a/src/OpenFOAM/containers/Lists/FixedList/FixedList.H +++ b/src/OpenFOAM/containers/Lists/FixedList/FixedList.H @@ -162,13 +162,13 @@ public: inline FixedList() = default; //- Construct and initialize all entries to given value - explicit inline FixedList(const T& val); + inline explicit FixedList(const T& val); //- Construct and initialize all entries to zero - explicit inline FixedList(const zero); + inline explicit FixedList(const zero); //- Copy construct from C-array - explicit inline FixedList(const T list[Size]); + inline explicit FixedList(const T list[Size]); //- Copy constructor inline FixedList(const FixedList& list); @@ -186,10 +186,10 @@ public: inline FixedList(std::initializer_list list); //- Construct from UList - explicit inline FixedList(const UList& list); + inline explicit FixedList(const UList& list); //- Construct from SLList - explicit inline FixedList(const SLList& list); + inline explicit FixedList(const SLList& list); //- Construct from Istream FixedList(Istream& is); diff --git a/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H b/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H index 6cb2dc576e..1944b7b1df 100644 --- a/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H +++ b/src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H @@ -73,10 +73,10 @@ protected: // Constructors //- Copy construct from addressing array - explicit inline IndirectListAddressing(const labelUList& addr); + inline explicit IndirectListAddressing(const labelUList& addr); //- Move construct from addressing array - explicit inline IndirectListAddressing(List