Clang: Highlight invalid declarations as text

...instead of the corresponding declaration color.

Task-number: QTCREATORBUG-18686
Change-Id: Ice4d84816351af79efa286f49516c392bd80da86
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-11-15 13:35:38 +01:00
parent 28d0a5e537
commit 4f20c0d4ed
7 changed files with 42 additions and 0 deletions

View File

@@ -41,4 +41,9 @@ enum class PreferredTranslationUnit
# define IS_PRETTY_DECL_SUPPORTED
#endif
// CLANG-UPGRADE-CHECK: Remove IS_INVALIDDECL_SUPPORTED once we require clang >= 7.0
#if defined(CINDEX_VERSION_HAS_ISINVALIDECL_BACKPORTED) || CINDEX_VERSION_MINOR >= 46
# define IS_INVALIDDECL_SUPPORTED
#endif
} // namespace ClangBackEnd