clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / src / common / pthread-lock.hpp
index d19e3f3fbeb9ba066c19494ce209191859d2b495..824b2f2a91ce03cacedaab5bf6d72c3fb2f8660e 100644 (file)
@@ -26,7 +26,7 @@ namespace details {
  */
 class mutex {
 public:
-       mutex(pthread_mutex_t& mutex_p) : _mutex{mutex_p}
+       explicit mutex(pthread_mutex_t& mutex_p) : _mutex{mutex_p}
        {
        }
 
@@ -76,7 +76,7 @@ private:
  */
 class lock_guard {
 public:
-       lock_guard(pthread_mutex_t& mutex) : _mutex{mutex}, _guard(_mutex)
+       explicit lock_guard(pthread_mutex_t& mutex) : _mutex{mutex}, _guard(_mutex)
        {
        }
 
This page took 0.022725 seconds and 4 git commands to generate.