summaryrefslogtreecommitdiffstats
path: root/libmemunreachable
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-09-25 11:16:22 -0700
committerChih-hung Hsieh <chh@google.com>2018-10-05 16:43:47 +0000
commit747eb149d06d9077e7b44aa1edd966e637386f33 (patch)
treef64bdec4eba3c79bcb6dd1da72e948da5e3a08f6 /libmemunreachable
parent5f2a21d244be6cbbc64047474b0aca352f93b2d9 (diff)
downloadsystem_core-747eb149d06d9077e7b44aa1edd966e637386f33.tar.gz
system_core-747eb149d06d9077e7b44aa1edd966e637386f33.tar.bz2
system_core-747eb149d06d9077e7b44aa1edd966e637386f33.zip
Add noexcept to move constructors and assignment operators.
Bug: 116614593 Test: build with WITH_TIDY=1 Change-Id: I5a7461386946ca623ab509609092aa0ac8418b80
Diffstat (limited to 'libmemunreachable')
-rw-r--r--libmemunreachable/ScopedPipe.h4
-rw-r--r--libmemunreachable/Tarjan.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/libmemunreachable/ScopedPipe.h b/libmemunreachable/ScopedPipe.h
index adabfd8b7..b9dead50d 100644
--- a/libmemunreachable/ScopedPipe.h
+++ b/libmemunreachable/ScopedPipe.h
@@ -33,12 +33,12 @@ class ScopedPipe {
}
~ScopedPipe() { Close(); }
- ScopedPipe(ScopedPipe&& other) {
+ ScopedPipe(ScopedPipe&& other) noexcept {
SetReceiver(other.ReleaseReceiver());
SetSender(other.ReleaseSender());
}
- ScopedPipe& operator=(ScopedPipe&& other) {
+ ScopedPipe& operator=(ScopedPipe&& other) noexcept {
SetReceiver(other.ReleaseReceiver());
SetSender(other.ReleaseSender());
return *this;
diff --git a/libmemunreachable/Tarjan.h b/libmemunreachable/Tarjan.h
index 355679f72..f3ab65252 100644
--- a/libmemunreachable/Tarjan.h
+++ b/libmemunreachable/Tarjan.h
@@ -38,7 +38,7 @@ class Node {
Node(T* ptr, Allocator<Node> allocator)
: references_in(allocator), references_out(allocator), ptr(ptr){};
- Node(Node&& rhs) = default;
+ Node(Node&& rhs) noexcept = default;
void Edge(Node<T>* ref) {
references_out.emplace(ref);
ref->references_in.emplace(this);