Skip to content

Commit

Permalink
Include what you spell
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 555205956
Change-Id: I935b95c29a8d5b69fe45cc0fe1aadb7106d31df3
  • Loading branch information
gribozavr authored and copybara-github committed Aug 9, 2023
1 parent 6d3c39e commit b9a414d
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 7 deletions.
6 changes: 6 additions & 0 deletions absl/status/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,20 @@ cc_library(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
"//absl/base:atomic_hook",
"//absl/base:config",
"//absl/base:core_headers",
"//absl/base:raw_logging_internal",
"//absl/base:strerror",
"//absl/container:inlined_vector",
"//absl/debugging:stacktrace",
"//absl/debugging:symbolize",
"//absl/functional:function_ref",
"//absl/memory",
"//absl/strings",
"//absl/strings:cord",
"//absl/strings:str_format",
"//absl/types:optional",
"//absl/types:span",
],
)

Expand All @@ -65,6 +68,7 @@ cc_test(
deps = [
":status",
"//absl/strings",
"//absl/strings:cord",
"@com_google_googletest//:gtest_main",
],
)
Expand All @@ -83,6 +87,7 @@ cc_library(
deps = [
":status",
"//absl/base",
"//absl/base:config",
"//absl/base:core_headers",
"//absl/base:raw_logging_internal",
"//absl/meta:type_traits",
Expand All @@ -103,6 +108,7 @@ cc_test(
"//absl/memory",
"//absl/strings",
"//absl/types:any",
"//absl/types:variant",
"//absl/utility",
"@com_google_googletest//:gtest_main",
],
Expand Down
9 changes: 6 additions & 3 deletions absl/status/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ absl_cc_library(
absl::core_headers
absl::function_ref
absl::inlined_vector
absl::memory
absl::optional
absl::raw_logging_internal
absl::span
absl::stacktrace
absl::str_format
absl::strerror
absl::str_format
absl::strings
absl::symbolize
PUBLIC
Expand Down Expand Up @@ -69,11 +71,12 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
DEPS
absl::base
absl::status
absl::config
absl::core_headers
absl::raw_logging_internal
absl::type_traits
absl::status
absl::strings
absl::type_traits
absl::utility
absl::variant
PUBLIC
Expand Down
16 changes: 15 additions & 1 deletion absl/status/status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,33 @@

#include <errno.h>

#include <cassert>
#include <atomic>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <memory>
#include <ostream>
#include <string>
#include <utility>

#include "absl/base/attributes.h"
#include "absl/base/config.h"
#include "absl/base/internal/raw_logging.h"
#include "absl/base/internal/strerror.h"
#include "absl/base/macros.h"
#include "absl/debugging/stacktrace.h"
#include "absl/debugging/symbolize.h"
#include "absl/functional/function_ref.h"
#include "absl/memory/memory.h"
#include "absl/status/internal/status_internal.h"
#include "absl/status/status_payload_printer.h"
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include "absl/types/span.h"

namespace absl {
ABSL_NAMESPACE_BEGIN
Expand Down
4 changes: 1 addition & 3 deletions absl/status/status_payload_printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
// limitations under the License.
#include "absl/status/status_payload_printer.h"

#include <atomic>

#include "absl/base/attributes.h"
#include "absl/base/config.h"
#include "absl/base/internal/atomic_hook.h"

namespace absl {
Expand Down
6 changes: 6 additions & 0 deletions absl/status/status_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@

#include <errno.h>

#include <array>
#include <cstddef>
#include <sstream>
#include <utility>

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/strings/cord.h"
#include "absl/strings/str_cat.h"

namespace {
Expand Down
2 changes: 2 additions & 0 deletions absl/status/statusor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#include <utility>

#include "absl/base/call_once.h"
#include "absl/base/config.h"
#include "absl/base/internal/raw_logging.h"
#include "absl/status/internal/statusor_internal.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"

Expand Down
4 changes: 4 additions & 0 deletions absl/status/statusor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
#include "absl/status/statusor.h"

#include <array>
#include <cstddef>
#include <initializer_list>
#include <map>
#include <memory>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

#include "gmock/gmock.h"
#include "gtest/gtest.h"
Expand All @@ -28,6 +31,7 @@
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "absl/types/any.h"
#include "absl/types/variant.h"
#include "absl/utility/utility.h"

namespace {
Expand Down

0 comments on commit b9a414d

Please sign in to comment.