[clangd] Made UniqueFunction's bool conversion explicit
authorIlya Biryukov <ibiryukov@google.com>
Wed, 20 Dec 2017 14:06:05 +0000 (14:06 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 20 Dec 2017 14:06:05 +0000 (14:06 +0000)
llvm-svn: 321173

clang-tools-extra/clangd/Function.h

index 9cf0b22..8d1da07 100644 (file)
@@ -49,7 +49,7 @@ public:
                     FunctionCallImpl<typename std::decay<Callable>::type>>(
             std::forward<Callable>(Func))) {}
 
-  operator bool() { return bool(CallablePtr); }
+  explicit operator bool() { return bool(CallablePtr); }
 
   Ret operator()(Args... As) {
     assert(CallablePtr);