forked from qt-creator/qt-creator
Clang Static Analyzer: Enable action only for supported project managers
Change-Id: Iebdfabe7d81cd81a780ba6c2c6513ca866ef7bd7 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -70,6 +70,10 @@ bool ClangStaticAnalyzerRunControlFactory::canRun(RunConfiguration *runConfigura
|
|||||||
|
|
||||||
Project *project = runConfiguration->target()->project();
|
Project *project = runConfiguration->target()->project();
|
||||||
QTC_ASSERT(project, return false);
|
QTC_ASSERT(project, return false);
|
||||||
|
|
||||||
|
if (project->id() != "Qt4ProjectManager.Qt4Project" && project->id() != "Qbs.QbsProject")
|
||||||
|
return false;
|
||||||
|
|
||||||
const Core::Context context = project->projectLanguages();
|
const Core::Context context = project->projectLanguages();
|
||||||
if (!context.contains(ProjectExplorer::Constants::LANG_CXX))
|
if (!context.contains(ProjectExplorer::Constants::LANG_CXX))
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user