From cf94a15379ad72d0892c76bbdeff1a117e49cf31 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Fri, 19 Jan 2018 15:58:02 +0100 Subject: [PATCH] Clang: Fix warning in switch() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clangjobrequest.cpp:176:12: warning: enumeration value ‘RequestToolTip’ not handled in switch [-Wswitch] Change-Id: I09080548ba45ef99bc0c9e08b06d2ea3268b5662 Reviewed-by: Ivan Donchevskii --- src/tools/clangbackend/source/clangjobrequest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/clangbackend/source/clangjobrequest.cpp b/src/tools/clangbackend/source/clangjobrequest.cpp index 2715ecde1c7..995102bcf0c 100644 --- a/src/tools/clangbackend/source/clangjobrequest.cpp +++ b/src/tools/clangbackend/source/clangjobrequest.cpp @@ -178,6 +178,7 @@ bool JobRequest::isTakeOverable() const case Type::CompleteCode: case Type::RequestReferences: case Type::FollowSymbol: + case Type::RequestToolTip: return true; // Discard this one as UpdateDocumentAnnotations will have the same effect.