Clang: Centralize job related switch code

...and where applicable, ensure that a warning is printed once a
jobrequest type is not handled.

Change-Id: Ida0b5a175947ebf75c1c4e5116a77f0270825336
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-09-20 16:38:22 +02:00
parent be868863e5
commit 3b415dbd04
6 changed files with 85 additions and 79 deletions

View File

@@ -39,7 +39,9 @@
namespace ClangBackEnd {
class ClangCodeModelClientInterface;
class Document;
class IAsyncJob;
class JobRequest
{
@@ -91,6 +93,9 @@ public:
JobRequest();
IAsyncJob *createJob() const;
void cancelJob(ClangCodeModelClientInterface &client) const;
bool operator==(const JobRequest &other) const;
public: