Merge pull request #1377 from davidben/clang-cl

Also define GTEST_ATTRIBUTE_PRINTF_ in clang-cl.
This commit is contained in:
Gennadiy Civil 2018-01-04 21:59:48 -05:00 committed by GitHub
commit abbc0f8174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -879,7 +879,7 @@ using ::std::tuple_size;
#endif
// Use this annotation before a function that takes a printf format string.
#if defined(__GNUC__) && !defined(COMPILER_ICC)
#if (defined(__GNUC__) || defined(__clang__)) && !defined(COMPILER_ICC)
# if defined(__MINGW_PRINTF_FORMAT)
// MinGW has two different printf implementations. Ensure the format macro
// matches the selected implementation. See