Use "override" keyword in clang (#2459)
This commit is contained in:
parent
42d44f02a2
commit
678560bf0d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue