Apply [[noreturn]] to Abort()
PiperOrigin-RevId: 216383938
This commit is contained in:
parent
7a1e9114a4
commit
b652edb39c
@ -723,7 +723,7 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
|||||||
# endif // GTEST_TUPLE_NAMESPACE_
|
# endif // GTEST_TUPLE_NAMESPACE_
|
||||||
|
|
||||||
# if GTEST_USE_OWN_TR1_TUPLE
|
# if GTEST_USE_OWN_TR1_TUPLE
|
||||||
# include "gtest/internal/gtest-tuple.h" // IWYU pragma: export // NOLINT
|
# include "third_party/googletest/googletest/include/gtest/internal/gtest-tuple.h" // IWYU pragma: export // NOLINT
|
||||||
# elif GTEST_OS_SYMBIAN
|
# elif GTEST_OS_SYMBIAN
|
||||||
|
|
||||||
// On Symbian, BOOST_HAS_TR1_TUPLE causes Boost's TR1 tuple library to
|
// On Symbian, BOOST_HAS_TR1_TUPLE causes Boost's TR1 tuple library to
|
||||||
@ -2540,9 +2540,9 @@ GTEST_DISABLE_MSC_DEPRECATED_POP_()
|
|||||||
// Windows CE has no C library. The abort() function is used in
|
// Windows CE has no C library. The abort() function is used in
|
||||||
// several places in Google Test. This implementation provides a reasonable
|
// several places in Google Test. This implementation provides a reasonable
|
||||||
// imitation of standard behaviour.
|
// imitation of standard behaviour.
|
||||||
void Abort();
|
[[noreturn]] void Abort();
|
||||||
#else
|
#else
|
||||||
inline void Abort() { abort(); }
|
[[noreturn]] inline void Abort() { abort(); }
|
||||||
#endif // GTEST_OS_WINDOWS_MOBILE
|
#endif // GTEST_OS_WINDOWS_MOBILE
|
||||||
|
|
||||||
} // namespace posix
|
} // namespace posix
|
||||||
|
Loading…
Reference in New Issue
Block a user