summaryrefslogtreecommitdiffstats
path: root/test/internal
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-12-11 16:45:37 -0800
committerWilliam A. Kennington III <wak@google.com>2018-12-13 15:22:36 -0800
commit651e87ad362e55ed4e34e6565fd0674390941a58 (patch)
tree38903c0c1552b65629fad3a5839a5615b1e3d787 /test/internal
parentd4b33e95f6b9bf9a2e1ad41f371fa602a49989a5 (diff)
downloadsdeventplus-651e87ad362e55ed4e34e6565fd0674390941a58.tar.gz
sdeventplus-651e87ad362e55ed4e34e6565fd0674390941a58.zip
clang-tidy: Basic configuration
This also cleans up some outstanding issues detected by the configuration. Tested: Ran through unit test scripts. Change-Id: I3357a2280a681a87532d6d72315260db2ab73e87 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'test/internal')
-rw-r--r--test/internal/sdref.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/internal/sdref.cpp b/test/internal/sdref.cpp
index 3b261d5..e8effa9 100644
--- a/test/internal/sdref.cpp
+++ b/test/internal/sdref.cpp
@@ -216,7 +216,14 @@ TEST_F(SdRefTest, MoveSelf)
EXPECT_TRUE(event);
EXPECT_EQ(expected_event, event.get());
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wself-move"
+#endif
event = std::move(event);
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
EXPECT_TRUE(event);
EXPECT_EQ(expected_event, event.get());
EXPECT_CALL(mock, sd_event_unref(expected_event))
OpenPOWER on IntegriCloud