forked from qt-creator/qt-creator
ClangStaticAnalyzer: Update comment about -dumpversion
Change-Id: I268e23dd6f73efcde0e6efcb04e3c0ffb946a11b Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -126,7 +126,9 @@ ClangExecutableVersion clangExecutableVersion(const QString &executable)
|
|||||||
Utils::SynchronousProcess runner;
|
Utils::SynchronousProcess runner;
|
||||||
runner.setEnvironment(environment.toStringList());
|
runner.setEnvironment(environment.toStringList());
|
||||||
runner.setTimeoutS(10);
|
runner.setTimeoutS(10);
|
||||||
// We would prefer "-dumpversion", but that one returns some old version number.
|
// We would prefer "-dumpversion", but that one is only there for GCC compatibility
|
||||||
|
// and returns some static/old version.
|
||||||
|
// See also https://bugs.llvm.org/show_bug.cgi?id=28597
|
||||||
const QStringList arguments(QLatin1String(("--version")));
|
const QStringList arguments(QLatin1String(("--version")));
|
||||||
const Utils::SynchronousProcessResponse response = runner.runBlocking(executable, arguments);
|
const Utils::SynchronousProcessResponse response = runner.runBlocking(executable, arguments);
|
||||||
if (response.result != Utils::SynchronousProcessResponse::Finished)
|
if (response.result != Utils::SynchronousProcessResponse::Finished)
|
||||||
|
Reference in New Issue
Block a user