Export of internal Abseil changes.
-- f4bb8afa9376b4120f56f3beff7b07260da4a5c2 by CJ Johnson <johnsoncj@google.com>: Add user to Github list PiperOrigin-RevId: 209630262 GitOrigin-RevId: f4bb8afa9376b4120f56f3beff7b07260da4a5c2 Change-Id: I3fedf35011d805ee4a20b92e073b43523b47d15b
This commit is contained in:
parent
fefc83638f
commit
bed5bd6e18
54 changed files with 302 additions and 302 deletions
|
|
@ -100,7 +100,7 @@
|
|||
// ABSL_PRINTF_ATTRIBUTE
|
||||
// ABSL_SCANF_ATTRIBUTE
|
||||
//
|
||||
// Tells the compiler to perform `printf` format std::string checking if the
|
||||
// Tells the compiler to perform `printf` format string checking if the
|
||||
// compiler supports it; see the 'format' attribute in
|
||||
// <http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Function-Attributes.html>.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@
|
|||
#define ABSL_HAVE_INTRINSIC_INT128 1
|
||||
#elif defined(__CUDACC__)
|
||||
// __CUDACC_VER__ is a full version number before CUDA 9, and is defined to a
|
||||
// std::string explaining that it has been removed starting with CUDA 9. We use
|
||||
// string explaining that it has been removed starting with CUDA 9. We use
|
||||
// nested #ifs because there is no short-circuiting in the preprocessor.
|
||||
// NOTE: `__CUDACC__` could be undefined while `__CUDACC_VER__` is defined.
|
||||
#if __CUDACC_VER__ >= 70000
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ TEST(ThrowingValueTest, ThrowingStreamOps) {
|
|||
}
|
||||
|
||||
// Tests the operator<< of ThrowingValue by forcing ConstructorTracker to emit
|
||||
// a nonfatal failure that contains the std::string representation of the Thrower
|
||||
// a nonfatal failure that contains the string representation of the Thrower
|
||||
TEST(ThrowingValueTest, StreamOpsOutput) {
|
||||
using ::testing::TypeSpec;
|
||||
exceptions_internal::ConstructorTracker ct(exceptions_internal::countdown);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ void SafeWriteToStderr(const char *s, size_t len);
|
|||
|
||||
// compile-time function to get the "base" filename, that is, the part of
|
||||
// a filename after the last "/" or "\" path separator. The search starts at
|
||||
// the end of the std::string; the second parameter is the length of the std::string.
|
||||
// the end of the string; the second parameter is the length of the string.
|
||||
constexpr const char* Basename(const char* fname, int offset) {
|
||||
return offset == 0 || fname[offset - 1] == '/' || fname[offset - 1] == '\\'
|
||||
? fname + offset
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ constexpr std::array<absl::LogSeverity, 4> LogSeverities() {
|
|||
absl::LogSeverity::kError, absl::LogSeverity::kFatal}};
|
||||
}
|
||||
|
||||
// Returns the all-caps std::string representation (e.g. "INFO") of the specified
|
||||
// Returns the all-caps string representation (e.g. "INFO") of the specified
|
||||
// severity level if it is one of the normal levels and "UNKNOWN" otherwise.
|
||||
constexpr const char* LogSeverityName(absl::LogSeverity s) {
|
||||
return s == absl::LogSeverity::kInfo
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ TEST(RawLoggingCompilationTest, PassingCheck) {
|
|||
}
|
||||
|
||||
// Not all platforms support output from raw log, so we don't verify any
|
||||
// particular output for RAW check failures (expecting the empty std::string
|
||||
// particular output for RAW check failures (expecting the empty string
|
||||
// accomplishes this). This test is primarily a compilation test, but we
|
||||
// are verifying process death when EXPECT_DEATH works for a platform.
|
||||
const char kExpectedDeathOutput[] = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue