File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ Checks: >
58
58
modernize-concat-nested-namespaces,
59
59
modernize-use-using,
60
60
performance-*,
61
- -performance-noexcept-move-constructor,
62
61
-performance-no-int-to-ptr,
63
62
-performance-enum-size,
64
63
-performance-avoid-endl,
Original file line number Diff line number Diff line change 24
24
- NodeJS:
25
25
- CHANGED: Use node-api instead of NAN. [ #6452 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6452 )
26
26
- Misc:
27
+ - FIXED: Fix performance-noexcept-move-constructor clang-tidy warning. [ #6931 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6933 )
27
28
- FIXED: Fix performance-noexcept-swap clang-tidy warning. [ #6931 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6931 )
28
29
- CHANGED: Use custom struct instead of std::pair in QueryHeap. [ #6921 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6921 )
29
30
- CHANGED: Use std::string_view::starts_with instead of boost::starts_with. [ #6918 ] ( https://github.com/Project-OSRM/osrm-backend/pull/6918 )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ struct header
12
12
// explicitly use default copy c'tor as adding move c'tor
13
13
header &operator =(const header &other) = default ;
14
14
header (std::string name, std::string value) : name(std::move(name)), value(std::move(value)) {}
15
- header (header &&other) : name(std::move(other.name)), value(std::move(other.value)) {}
15
+ header (header &&other) noexcept : name(std::move(other.name)), value(std::move(other.value)) {}
16
16
17
17
void clear ()
18
18
{
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ struct ConcurrentIDMap
26
26
mutable UpgradableMutex mutex;
27
27
28
28
ConcurrentIDMap () = default ;
29
- ConcurrentIDMap (ConcurrentIDMap &&other)
29
+ ConcurrentIDMap (ConcurrentIDMap &&other) noexcept
30
30
{
31
31
if (this != &other)
32
32
{
@@ -36,7 +36,7 @@ struct ConcurrentIDMap
36
36
data = std::move (other.data );
37
37
}
38
38
}
39
- ConcurrentIDMap &operator =(ConcurrentIDMap &&other)
39
+ ConcurrentIDMap &operator =(ConcurrentIDMap &&other) noexcept
40
40
{
41
41
if (this != &other)
42
42
{
Original file line number Diff line number Diff line change @@ -204,8 +204,8 @@ template <typename ElementT> class DeallocatingVector
204
204
}
205
205
206
206
// moving is fine
207
- DeallocatingVector (DeallocatingVector &&other) { swap (other); }
208
- DeallocatingVector &operator =(DeallocatingVector &&other)
207
+ DeallocatingVector (DeallocatingVector &&other) noexcept { swap (other); }
208
+ DeallocatingVector &operator =(DeallocatingVector &&other) noexcept
209
209
{
210
210
swap (other);
211
211
return *this ;
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ template <typename EdgeDataT> class DynamicGraph
154
154
return *this ;
155
155
}
156
156
157
- DynamicGraph (DynamicGraph &&other)
157
+ DynamicGraph (DynamicGraph &&other) noexcept
158
158
{
159
159
number_of_nodes = other.number_of_nodes ;
160
160
// atomics can't be moved this is why we need an own constructor
@@ -164,7 +164,7 @@ template <typename EdgeDataT> class DynamicGraph
164
164
edge_list = std::move (other.edge_list );
165
165
}
166
166
167
- DynamicGraph &operator =(DynamicGraph &&other)
167
+ DynamicGraph &operator =(DynamicGraph &&other) noexcept
168
168
{
169
169
number_of_nodes = other.number_of_nodes ;
170
170
// atomics can't be moved this is why we need an own constructor
You can’t perform that action at this time.
0 commit comments