forked from qt-creator/qt-creator
clangformat: Fix building with MSVC for unmodified clang
Amends 1ff337089a
Change-Id: Ia830f8799f29a1ae87bb3dd77e8ab48278eb9a7e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -155,7 +155,11 @@ bool ClangFormatPlugin::initialize(const QStringList &arguments, QString *errorS
|
||||
}
|
||||
return true;
|
||||
#else
|
||||
#ifdef Q_CC_MSVC
|
||||
# pragma message("ClangFormat: building dummy plugin due to unmodified Clang, see README.md for more info")
|
||||
#else
|
||||
# warning ClangFormat: building dummy plugin due to unmodified Clang, see README.md for more info
|
||||
#endif
|
||||
*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";
|
||||
|
Reference in New Issue
Block a user