forked from qt-creator/qt-creator
Clang: Go through CLANG-UPGRADE-CHECK
Change-Id: Iaaaea598d020a44bcdc60a8d06ee28a1f28386bb Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -503,6 +503,7 @@ static QStringList languageFeatureMacros()
|
||||
QLatin1String("__cpp_exceptions"),
|
||||
QLatin1String("__cpp_fold_expressions"),
|
||||
QLatin1String("__cpp_generic_lambdas"),
|
||||
QLatin1String("__cpp_guaranteed_copy_elision"),
|
||||
QLatin1String("__cpp_hex_float"),
|
||||
QLatin1String("__cpp_if_constexpr"),
|
||||
QLatin1String("__cpp_inheriting_constructors"),
|
||||
@@ -514,6 +515,7 @@ static QStringList languageFeatureMacros()
|
||||
QLatin1String("__cpp_nested_namespace_definitions"),
|
||||
QLatin1String("__cpp_noexcept_function_type"),
|
||||
QLatin1String("__cpp_nontype_template_args"),
|
||||
QLatin1String("__cpp_nontype_template_parameter_auto"),
|
||||
QLatin1String("__cpp_nsdmi"),
|
||||
QLatin1String("__cpp_range_based_for"),
|
||||
QLatin1String("__cpp_raw_strings"),
|
||||
|
@@ -51,7 +51,7 @@ enum class PreferredTranslationUnit
|
||||
# define IS_LIMITSKIPFUNCTIONBODIESTOPREAMBLE_SUPPORTED
|
||||
#endif
|
||||
|
||||
// CLANG-UPGRADE-CHECK: Remove IS_SKIPWARNINGSFROMINCLUDEDFILES_SUPPORTED once we require clang >= 7.0
|
||||
// CLANG-UPGRADE-CHECK: Remove IS_SKIPWARNINGSFROMINCLUDEDFILES_SUPPORTED
|
||||
#if defined(CINDEX_VERSION_HAS_SKIPWARNINGSFROMINCLUDEDFILES_BACKPORTED)
|
||||
# define IS_SKIPWARNINGSFROMINCLUDEDFILES_SUPPORTED
|
||||
#endif
|
||||
|
@@ -1485,8 +1485,7 @@ TEST_F(TokenProcessor, PreprocessorInclusionDirectiveWithKeyword)
|
||||
ASSERT_THAT(infos[3], HasOnlyType(HighlightingType::StringLiteral));
|
||||
}
|
||||
|
||||
// CLANG-UPGRADE-CHECK: Enable once https://bugs.llvm.org//show_bug.cgi?id=12972 is resolved.
|
||||
TEST_F(TokenProcessor, DISABLED_VariableInOperatorFunctionCall)
|
||||
TEST_F(TokenProcessor, VariableInOperatorFunctionCall)
|
||||
{
|
||||
const auto infos = translationUnit.tokenInfosInRange(sourceRange(566, 12));
|
||||
|
||||
|
Reference in New Issue
Block a user