forked from qt-creator/qt-creator
ClangTools: Remove clang executable settings
We use custom clang executable and it does not make sense anymore to give a choice of changing it. Change-Id: Icf86042ac3fcd08c320ef2bbdaabef1102b023b5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -39,36 +39,7 @@ namespace Debugger { class DiagnosticLocation; }
|
||||
namespace ClangTools {
|
||||
namespace Internal {
|
||||
|
||||
bool isClangExecutableUsable(const QString &filePath, QString *errorMessage = 0);
|
||||
|
||||
QString clangExecutableFromSettings(bool *isValid);
|
||||
|
||||
QString createFullLocationString(const Debugger::DiagnosticLocation &location);
|
||||
|
||||
// CLANG-UPGRADE-CHECK: Adapt minimum version numbers.
|
||||
class ClangExecutableVersion : public QVersionNumber {
|
||||
public:
|
||||
ClangExecutableVersion() : QVersionNumber(-1, -1, -1) {}
|
||||
ClangExecutableVersion(int major, int minor, int micro)
|
||||
: QVersionNumber(major, minor, micro) {}
|
||||
|
||||
bool isValid() const
|
||||
{
|
||||
return majorVersion() >= 0 && minorVersion() >= 0 && microVersion() >= 0;
|
||||
}
|
||||
|
||||
bool isSupportedVersion() const
|
||||
{
|
||||
return majorVersion() == 5 && minorVersion() == 0;
|
||||
}
|
||||
|
||||
static QString supportedVersionAsString()
|
||||
{
|
||||
return QLatin1String("5.0");
|
||||
}
|
||||
};
|
||||
|
||||
ClangExecutableVersion clangExecutableVersion(const QString &absolutePath);
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ClangTools
|
||||
|
||||
Reference in New Issue
Block a user