| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Tag CHECK_EQ, CHECK_GE, etc implementations as `ABSL_ATTRIBUTE_ALWAYS_INLINE` Many Android builds optimize aggressively for size by compiling with `-Oz`. This is pathological for these two methods: we end up calling two callstacks deep (from the `int v1` overload to the `T1 v1` overload) for the common case. It's all because of the inlining thresholds: - `-Oz` sets inline threshold = 5 (about one instruction) - `-Oz` ignores the `inline` keyword, which would typically bump a method's inline threshold up to `325`. These functions inline cost is too high to be inlined at `-Oz`. But we know better: we know these functions are almost never going to call their cold path. After this, the code compiles to a fast-path comparison on the caller and outlines the cold path. PiperOrigin-RevId: 987119155 Change-Id: Ifd6defa34692c10cee28cf082744aa1728732fb9 | 7 天前 | |
PR #2151: IWYU for some absl symbols Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/2151 add includes in the following for the symbols ``` absl/base/internal/exception_safety_testing.h absl::StrCat absl/base/internal/exception_safety_testing.cc absl::string_view absl/base/internal/exception_safety_testing.cc absl::StrAppend absl/log/log_format_test.cc absl::LogSink absl/strings/internal/cord_rep_flat.h absl::string_view ``` Merge 1dabb6e662282d3a3c40eb91de61260e05516a28 into 536d30bfea05a09c7561cbba749ca7f738d46821 Merging this change closes #2151 PiperOrigin-RevId: 975822710 Change-Id: I20c1afe6241fe86bf9019d75cae9bf723bb63da0 | 28 天前 | |
PR #2151: IWYU for some absl symbols Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/2151 add includes in the following for the symbols ``` absl/base/internal/exception_safety_testing.h absl::StrCat absl/base/internal/exception_safety_testing.cc absl::string_view absl/base/internal/exception_safety_testing.cc absl::StrAppend absl/log/log_format_test.cc absl::LogSink absl/strings/internal/cord_rep_flat.h absl::string_view ``` Merge 1dabb6e662282d3a3c40eb91de61260e05516a28 into 536d30bfea05a09c7561cbba749ca7f738d46821 Merging this change closes #2151 PiperOrigin-RevId: 975822710 Change-Id: I20c1afe6241fe86bf9019d75cae9bf723bb63da0 | 28 天前 | |
Rename ABSL_*_IMPL macros to match the other ABSL_LOG_INTERNAL_* macros and to make sure it's clear that they're internal. Also rename the log and check test files from .h to .inc per https://google.github.io/styleguide/cppguide.html#Self_contained_Headers. PiperOrigin-RevId: 533603350 Change-Id: Iad5d8b683e33b63784cc8e64b84da09f5fc3bf1e | 3 年前 | |
Rename ABSL_*_IMPL macros to match the other ABSL_LOG_INTERNAL_* macros and to make sure it's clear that they're internal. Also rename the log and check test files from .h to .inc per https://google.github.io/styleguide/cppguide.html#Self_contained_Headers. PiperOrigin-RevId: 533603350 Change-Id: Iad5d8b683e33b63784cc8e64b84da09f5fc3bf1e | 3 年前 | |
Add VLOG and friends These are methods for configurable verbose logging PiperOrigin-RevId: 588059727 Change-Id: Ib3703edd2493050a5da8b30e88b21adc643b1f7f | 2 年前 | |
Reland: Make DLOG(FATAL) not understood as [[noreturn]] Having DLOG(FATAL) be [[noreturn]] in debug builds makes dead-code warnings impossible to satisfy between the release and debug build. PiperOrigin-RevId: 618257732 Change-Id: Ib1c2cb6a026401fbaa0a6e0770adfc166b964ece | 2 年前 | |
Remove IWYU private pragmas now that vlog_is_on is public PiperOrigin-RevId: 907322933 Change-Id: I485ed55cb4f3686fa5dad17f58b65e3aba7dd6b6 | 5 个月前 | |
Fix out-of-date note about AbslStringify CHECK_EQ support PiperOrigin-RevId: 927016075 Change-Id: I3268d636778c704c01287ceda06d53bed2bcbf3e | 3 个月前 | |
Rename ABSL_*_IMPL macros to match the other ABSL_LOG_INTERNAL_* macros and to make sure it's clear that they're internal. Also rename the log and check test files from .h to .inc per https://google.github.io/styleguide/cppguide.html#Self_contained_Headers. PiperOrigin-RevId: 533603350 Change-Id: Iad5d8b683e33b63784cc8e64b84da09f5fc3bf1e | 3 年前 | |
Internal cleanup PiperOrigin-RevId: 979874507 Change-Id: I440f7fcde1436954882f1a4db47079bed90a0990 | 20 天前 | |
Annotate ABSL_DIE_IF_NULL's return type with `absl_nonnull` This helps inform Nullability inference without needing any special casing. Since ABSL_DIE_IF_NULL is allowed for pointers, smart pointers, or classes marked with ABSL_NULLABILITY_COMPATIBLE we introduce a trait to help add the annotation only when compatible. This trait is kept internal for now out of caution for what we are supporting, though people have asked about it before (see b/394789178). Simple cases are tested by `-Wnonnull` in absl/base/nullability_nc_test.cc. However, it's unclear how to test the complex cases like templates with universal references with the simple compiler `-Wnonnull`. There is a followup nullability inference test (cl/808830606). Since there is Wnullability-completeness, needed to annotate the rest of die_if_null.h PiperOrigin-RevId: 810463021 Change-Id: Id5156996bf3a29a99e689974ac2af7b94b21c460 | 1 年前 | |
Annotate ABSL_DIE_IF_NULL's return type with `absl_nonnull` This helps inform Nullability inference without needing any special casing. Since ABSL_DIE_IF_NULL is allowed for pointers, smart pointers, or classes marked with ABSL_NULLABILITY_COMPATIBLE we introduce a trait to help add the annotation only when compatible. This trait is kept internal for now out of caution for what we are supporting, though people have asked about it before (see b/394789178). Simple cases are tested by `-Wnonnull` in absl/base/nullability_nc_test.cc. However, it's unclear how to test the complex cases like templates with universal references with the simple compiler `-Wnonnull`. There is a followup nullability inference test (cl/808830606). Since there is Wnullability-completeness, needed to annotate the rest of die_if_null.h PiperOrigin-RevId: 810463021 Change-Id: Id5156996bf3a29a99e689974ac2af7b94b21c460 | 1 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Release the Abseil Logging library PiperOrigin-RevId: 470080638 Change-Id: I8d9ddfabc7704c383ed5a73abf0411f4c58a4bf7 | 4 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Add configurability of the log Tag value on Android PiperOrigin-RevId: 525178448 Change-Id: I0f35a38f23316b25621148b7fe59becf72bafeff | 3 年前 | |
Use C++17 [[nodiscard]] instead of the deprecated ABSL_MUST_USE_RESULT In this change, //absl/status is intentionally excluded because of complication with SWIG compatibility. This may be handled separately. PiperOrigin-RevId: 731387819 Change-Id: I71bf2e02f3a477d65575d467f5e5ab163846d31e | 1 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Refactor for preliminary API update. PiperOrigin-RevId: 566675048 Change-Id: Ie598c21474858974e4b4adbad401c61a38924c98 | 2 年前 | |
Release the Abseil Logging library PiperOrigin-RevId: 470080638 Change-Id: I8d9ddfabc7704c383ed5a73abf0411f4c58a4bf7 | 4 年前 | |
Rename VLOG macro parameter to match other uses of this pseudo type. PiperOrigin-RevId: 816551293 Change-Id: I102d9f877741d377f3a3a2096b3af8e533d4f948 | 11 个月前 | |
Reland: Make DLOG(FATAL) not understood as [[noreturn]] Having DLOG(FATAL) be [[noreturn]] in debug builds makes dead-code warnings impossible to satisfy between the release and debug build. PiperOrigin-RevId: 618257732 Change-Id: Ib1c2cb6a026401fbaa0a6e0770adfc166b964ece | 2 年前 | |
In logging tests that write expectations against `ScopedMockLog::Send`, suppress the default behavior that forwards to `ScopedMockLog::Log` so that unexpected logs are printed with full metadata. Many of these tests are poking at those metadata, and a failure message that doesn't include them is unhelpful. Also, add a GoogleTest debug `PrintTo` routine for `LogEntry`, so that unexpected calls to `ScopedMockLog::Send` print metadata legibly. PiperOrigin-RevId: 790735226 Change-Id: If21821812a9b7ecfaefef9ea5085f161f9331cf4 | 1 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
In logging tests that write expectations against `ScopedMockLog::Send`, suppress the default behavior that forwards to `ScopedMockLog::Log` so that unexpected logs are printed with full metadata. Many of these tests are poking at those metadata, and a failure message that doesn't include them is unhelpful. Also, add a GoogleTest debug `PrintTo` routine for `LogEntry`, so that unexpected calls to `ScopedMockLog::Send` print metadata legibly. PiperOrigin-RevId: 790735226 Change-Id: If21821812a9b7ecfaefef9ea5085f161f9331cf4 | 1 年前 | |
In logging tests that write expectations against `ScopedMockLog::Send`, suppress the default behavior that forwards to `ScopedMockLog::Log` so that unexpected logs are printed with full metadata. Many of these tests are poking at those metadata, and a failure message that doesn't include them is unhelpful. Also, add a GoogleTest debug `PrintTo` routine for `LogEntry`, so that unexpected calls to `ScopedMockLog::Send` print metadata legibly. PiperOrigin-RevId: 790735226 Change-Id: If21821812a9b7ecfaefef9ea5085f161f9331cf4 | 1 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
PR #2151: IWYU for some absl symbols Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/2151 add includes in the following for the symbols ``` absl/base/internal/exception_safety_testing.h absl::StrCat absl/base/internal/exception_safety_testing.cc absl::string_view absl/base/internal/exception_safety_testing.cc absl::StrAppend absl/log/log_format_test.cc absl::LogSink absl/strings/internal/cord_rep_flat.h absl::string_view ``` Merge 1dabb6e662282d3a3c40eb91de61260e05516a28 into 536d30bfea05a09c7561cbba749ca7f738d46821 Merging this change closes #2151 PiperOrigin-RevId: 975822710 Change-Id: I20c1afe6241fe86bf9019d75cae9bf723bb63da0 | 28 天前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Add missing #includes PiperOrigin-RevId: 970247407 Change-Id: I6a004b2a8356d1654aff05a10aacc588d9625640 | 1 个月前 | |
Release the Abseil Logging library PiperOrigin-RevId: 470080638 Change-Id: I8d9ddfabc7704c383ed5a73abf0411f4c58a4bf7 | 4 年前 | |
Add protected copy ctor+assign to absl::LogSink, and clarify thread-safety requirements to apply to the interface methods. PiperOrigin-RevId: 599266310 Change-Id: I3b5a91eb17b4b09feba5e048892875f3a747afb1 | 2 年前 | |
Automated Code Change PiperOrigin-RevId: 744017203 Change-Id: I69b4418b306bdb5f89194bbcddaed9813e46ec6f | 1 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Remove more lingering C++17 type traits polyfill usages This will let us deprecate the declarations without triggering warnings in Abseil itself. PiperOrigin-RevId: 906360966 Change-Id: Iee362ac0eac647909ef38003280f1179813f764d | 5 个月前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Initialize ScopedMockLog.is_triggered_ with false. In C++20, this happens by default, but in C++17, it's left uninitialized if no logs are sent and StartCapturingLogs is never called. The destructor then makes an attempt to access it, which is both unsafe and not very useful while it is uninitialized. Also add a test that expects the appropriate CHECK fail when StartCapturingLogs is not called. PiperOrigin-RevId: 511865440 Change-Id: Ie23ff3f901e926761d5f487e10d33c21c3bd43d3 | 3 年前 | |
In logging tests that write expectations against `ScopedMockLog::Send`, suppress the default behavior that forwards to `ScopedMockLog::Log` so that unexpected logs are printed with full metadata. Many of these tests are poking at those metadata, and a failure message that doesn't include them is unhelpful. Also, add a GoogleTest debug `PrintTo` routine for `LogEntry`, so that unexpected calls to `ScopedMockLog::Send` print metadata legibly. PiperOrigin-RevId: 790735226 Change-Id: If21821812a9b7ecfaefef9ea5085f161f9331cf4 | 1 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Add missing #includes PiperOrigin-RevId: 970247407 Change-Id: I6a004b2a8356d1654aff05a10aacc588d9625640 | 1 个月前 | |
Add ABSL_ATTRIBUTE_LIFETIME_BOUND and a doc note about absl::LogAsLiteral to clarify its intended use. PiperOrigin-RevId: 696592874 Change-Id: I6d6bc4690f891fbbdd8489b2e2f6398b43d63001 | 1 年前 | |
Internal cleanup PiperOrigin-RevId: 973653889 Change-Id: Ie0401989a515ed7b1b17393348162d1d4f148544 | 1 个月前 | |
Remove IWYU private pragmas now that vlog_is_on is public PiperOrigin-RevId: 907322933 Change-Id: I485ed55cb4f3686fa5dad17f58b65e3aba7dd6b6 | 5 个月前 | |
Cleanup the uses of the polyfills absl::any, absl::optional, absl::variant, and related types The corresponding headers are removed from cc files, but kept in headers to prevent breakages from transitive dependencies. PiperOrigin-RevId: 872421685 Change-Id: I867d4c3f7c9e422289c63816d44719b0530fb0a6 | 7 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 7 天前 | ||
| 28 天前 | ||
| 28 天前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 5 个月前 | ||
| 3 个月前 | ||
| 3 年前 | ||
| 20 天前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 4 年前 | ||
| 1 个月前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 11 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 28 天前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 5 个月前 | ||
| 1 个月前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 5 个月前 | ||
| 7 个月前 |