Clang: Require LLVM/Clang >= 5.0.0

...for the code model parts and declare 5.0 as the supported version for
the clang static analyzer.

Adapt versions and tests, remove code assuming clang <= 5.0.

LLVM/Clang 5 was released on 07 Sep 2017.

Task-number: QTCREATORBUG-18931
Task-number: QTCREATORBUG-18657
Task-number: QTCREATORBUG-17187
Task-number: QTCREATORBUG-14881
Change-Id: I53b00258ca06a1d2e57f9379dacc54b310687295
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-09-29 13:46:53 +02:00
parent 6de3eb7a1a
commit 5ba40cb7fb
25 changed files with 85 additions and 125 deletions

View File

@@ -108,12 +108,7 @@ TranslationUnitUpdateResult TranslationUnit::reparse(
bool TranslationUnit::suspend() const
{
#ifdef IS_SUSPEND_SUPPORTED
return clang_suspendTranslationUnit(cxTranslationUnit());
#else
QTC_CHECK(false && "clang_suspendTranslationUnit() not supported.");
return false;
#endif
}
TranslationUnit::CodeCompletionResult TranslationUnit::complete(