forked from qt-creator/qt-creator
Adapt to changes to run mode
Change-Id: I9e299d6fa49920ffa98ececb5b96e9512055ba34 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user