Adapt to changes to run mode

Change-Id: I9e299d6fa49920ffa98ececb5b96e9512055ba34
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-06-30 10:56:56 +02:00
parent 33ee3ffcca
commit 39613b3b08
5 changed files with 13 additions and 8 deletions

View File

@@ -18,6 +18,8 @@
#include "clangstaticanalyzerruncontrolfactory.h"
#include "clangstaticanalyzerconstants.h"
#include <analyzerbase/analyzermanager.h>
#include <analyzerbase/analyzerruncontrol.h>
#include <analyzerbase/analyzerstartparameters.h>
@@ -51,9 +53,9 @@ ClangStaticAnalyzerRunControlFactory::ClangStaticAnalyzerRunControlFactory(
}
bool ClangStaticAnalyzerRunControlFactory::canRun(RunConfiguration *runConfiguration,
RunMode runMode) const
Core::Id runMode) const
{
if (runMode != ClangStaticAnalyzerMode)
if (runMode != Constants::CLANGSTATICANALYZER_RUN_MODE)
return false;
Target *target = runConfiguration->target();
@@ -68,7 +70,7 @@ bool ClangStaticAnalyzerRunControlFactory::canRun(RunConfiguration *runConfigura
}
RunControl *ClangStaticAnalyzerRunControlFactory::create(RunConfiguration *runConfiguration,
RunMode runMode,
Core::Id runMode,
QString *errorMessage)
{
using namespace CppTools;