Skip to content

Commit 4e00cb4

Browse files
committed
Disable clang-tidy readability-redundant-inline-specifier in some lines
This is a false positive. We need this, because we are in an .hpp file.
1 parent f8af57a commit 4e00cb4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/osmium/index/relations_map.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ namespace osmium {
260260

261261
// defined outside the class on purpose
262262
// see https://akrzemi1.wordpress.com/2015/09/11/declaring-the-move-constructor/
263-
inline RelationsMapIndex::RelationsMapIndex(RelationsMapIndex&&) noexcept(std::is_nothrow_move_constructible<map_type>::value) = default;
264-
inline RelationsMapIndex& RelationsMapIndex::operator=(RelationsMapIndex&&) noexcept(std::is_nothrow_move_assignable<map_type>::value) = default;
263+
inline RelationsMapIndex::RelationsMapIndex(RelationsMapIndex&&) noexcept(std::is_nothrow_move_constructible<map_type>::value) = default; // NOLINT(readability-redundant-inline-specifier)
264+
inline RelationsMapIndex& RelationsMapIndex::operator=(RelationsMapIndex&&) noexcept(std::is_nothrow_move_assignable<map_type>::value) = default; // NOLINT(readability-redundant-inline-specifier)
265265

266266
class RelationsMapIndexes {
267267

@@ -442,8 +442,8 @@ namespace osmium {
442442

443443
// defined outside the class on purpose
444444
// see https://akrzemi1.wordpress.com/2015/09/11/declaring-the-move-constructor/
445-
inline RelationsMapStash::RelationsMapStash(RelationsMapStash&&) noexcept(std::is_nothrow_move_constructible<map_type>::value) = default;
446-
inline RelationsMapStash& RelationsMapStash::operator=(RelationsMapStash&&) noexcept(std::is_nothrow_move_assignable<map_type>::value) = default;
445+
inline RelationsMapStash::RelationsMapStash(RelationsMapStash&&) noexcept(std::is_nothrow_move_constructible<map_type>::value) = default; // NOLINT(readability-redundant-inline-specifier)
446+
inline RelationsMapStash& RelationsMapStash::operator=(RelationsMapStash&&) noexcept(std::is_nothrow_move_assignable<map_type>::value) = default; // NOLINT(readability-redundant-inline-specifier)
447447

448448
} // namespace index
449449

include/osmium/storage/item_stash.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace osmium {
102102
* be printed as a unique (for an ItemStash object) number.
103103
*/
104104
template <typename TChar, typename TTraits>
105-
friend inline std::basic_ostream<TChar, TTraits>& operator<<(std::basic_ostream<TChar, TTraits>& out, const ItemStash::handle_type& handle) {
105+
friend inline std::basic_ostream<TChar, TTraits>& operator<<(std::basic_ostream<TChar, TTraits>& out, const ItemStash::handle_type& handle) { // NOLINT(readability-redundant-inline-specifier)
106106
if (handle.valid()) {
107107
out << handle.value;
108108
} else {

0 commit comments

Comments
 (0)