Update glog to 0.6
PiperOrigin-RevId: 546349096
This commit is contained in:
committed by
Copybara-Service
parent
d45b15ef84
commit
03bc9d64f2
+3
-14
@@ -1,19 +1,8 @@
|
||||
diff --git a/src/logging.cc b/src/logging.cc
|
||||
index 0b5e6ee..be5a506 100644
|
||||
index 4028ccc..483e639 100644
|
||||
--- a/src/logging.cc
|
||||
+++ b/src/logging.cc
|
||||
@@ -67,6 +67,10 @@
|
||||
# include "stacktrace.h"
|
||||
#endif
|
||||
|
||||
+#ifdef __ANDROID__
|
||||
+#include <android/log.h>
|
||||
+#endif
|
||||
+
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::setw;
|
||||
@@ -1279,6 +1283,23 @@ ostream& LogMessage::stream() {
|
||||
@@ -1743,6 +1743,23 @@ ostream& LogMessage::stream() {
|
||||
return data_->stream_;
|
||||
}
|
||||
|
||||
@@ -37,7 +26,7 @@ index 0b5e6ee..be5a506 100644
|
||||
// Flush buffered message, called by the destructor, or any other function
|
||||
// that needs to synchronize the log.
|
||||
void LogMessage::Flush() {
|
||||
@@ -1313,6 +1334,12 @@ void LogMessage::Flush() {
|
||||
@@ -1779,6 +1796,12 @@ void LogMessage::Flush() {
|
||||
}
|
||||
LogDestination::WaitForSinks(data_);
|
||||
|
||||
-45
@@ -1,45 +0,0 @@
|
||||
https://github.com/google/glog/pull/342
|
||||
|
||||
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
|
||||
index d63f62d1..aa0dd4a8 100644
|
||||
--- a/CONTRIBUTORS
|
||||
+++ b/CONTRIBUTORS
|
||||
@@ -26,6 +26,7 @@ Abhishek Dasgupta <abhi2743@gmail.com>
|
||||
Abhishek Parmar <abhishek@orng.net>
|
||||
Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
|
||||
Andy Ying <andy@trailofbits.com>
|
||||
+Bret McKee <bretmckee@google.com>
|
||||
Brian Silverman <bsilver16384@gmail.com>
|
||||
Fumitoshi Ukai <ukai@google.com>
|
||||
Guillaume Dumont <dumont.guillaume@gmail.com>
|
||||
diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in
|
||||
index 9968b96d..f6dccb29 100644
|
||||
--- a/src/glog/logging.h.in
|
||||
+++ b/src/glog/logging.h.in
|
||||
@@ -649,6 +649,10 @@ void MakeCheckOpValueString(std::ostream* os, const signed char& v);
|
||||
template <> GOOGLE_GLOG_DLL_DECL
|
||||
void MakeCheckOpValueString(std::ostream* os, const unsigned char& v);
|
||||
|
||||
+// Provide printable value for nullptr_t
|
||||
+template <> GOOGLE_GLOG_DLL_DECL
|
||||
+void MakeCheckOpValueString(std::ostream* os, const std::nullptr_t& v);
|
||||
+
|
||||
// Build the error message string. Specify no inlining for code size.
|
||||
template <typename T1, typename T2>
|
||||
std::string* MakeCheckOpString(const T1& v1, const T2& v2, const char* exprtext)
|
||||
diff --git a/src/logging.cc b/src/logging.cc
|
||||
index 0c86cf62..256655e5 100644
|
||||
--- a/src/logging.cc
|
||||
+++ b/src/logging.cc
|
||||
@@ -2163,6 +2163,11 @@ void MakeCheckOpValueString(std::ostream* os, const unsigned char& v) {
|
||||
}
|
||||
}
|
||||
|
||||
+template <>
|
||||
+void MakeCheckOpValueString(std::ostream* os, const std::nullptr_t& v) {
|
||||
+ (*os) << "nullptr";
|
||||
+}
|
||||
+
|
||||
void InitGoogleLogging(const char* argv0) {
|
||||
glog_internal_namespace_::InitGoogleLoggingUtilities(argv0);
|
||||
}
|
||||
Reference in New Issue
Block a user