forked from qt-creator/qt-creator
Clang: Ensure using correct translation unit flags for clang >= 7.0
...otherwise things will get slower. Change-Id: Ifc01c31a2bb50a277a38ede5dbe58583d15010f5 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -46,4 +46,9 @@ enum class PreferredTranslationUnit
|
||||
# define IS_INVALIDDECL_SUPPORTED
|
||||
#endif
|
||||
|
||||
// CLANG-UPGRADE-CHECK: Remove IS_LIMITSKIPFUNCTIONBODIESTOPREAMBLE_SUPPORTED once we require clang >= 7.0
|
||||
#if defined(CINDEX_VERSION_HAS_LIMITSKIPFUNCTIONBODIESTOPREAMBLE_BACKPORTED) || CINDEX_VERSION_MINOR >= 46
|
||||
# define IS_LIMITSKIPFUNCTIONBODIESTOPREAMBLE_SUPPORTED
|
||||
#endif
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user