ClangFormat: improve the message the users see

In this way it's made clear that the plugin requires a patched version of Clang.

Task-number: QTCREATORBUG-22923
Change-Id: Ifefd5ab1a3dc82b85e553c5e1fedffb72919dd17
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Lisandro Damián Nicanor Pérez Meyer
2019-09-09 18:31:03 -03:00
parent 6808c891fb
commit 1ff337089a

View File

@@ -155,8 +155,9 @@ bool ClangFormatPlugin::initialize(const QStringList &arguments, QString *errorS
}
return true;
#else
*errorString = "Disabling ClangFormat plugin as it is not built against a suitable version of "
"Clang's libFormat. For more information, see the Qt Creator README at "
#warning ClangFormat: building dummy plugin due to unmodified Clang, see README.md for more info
*errorString = "Disabling ClangFormat plugin as it has not been built against a modified Clang's libFormat."
"For more information see the Qt Creator README at "
"https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/README.md";
return false;
#endif