Use "override" keyword in clang (#2459)

This commit is contained in:
Dmitry-Me 2019-12-25 18:19:00 +03:00 committed by GitHub
parent 42d44f02a2
commit 678560bf0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@
#endif #endif
// C++11 override // C++11 override
#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ >= 5)) || defined(__CPPCHECK__) #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ >= 5)) \
|| (defined(__clang__) && (defined (__cplusplus)) && (__cplusplus >= 201103L)) \
|| defined(__CPPCHECK__)
# define OVERRIDE override # define OVERRIDE override
#else #else
# define OVERRIDE # define OVERRIDE