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:
Ivan Donchevskii
2018-04-30 15:26:36 +02:00
parent 80ae992c91
commit 52ac74b61c
21 changed files with 87 additions and 340 deletions

View File

@@ -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