diff options
Diffstat (limited to 'absl/strings')
-rw-r--r-- | absl/strings/cord.cc | 1 | ||||
-rw-r--r-- | absl/strings/cord.h | 2 | ||||
-rw-r--r-- | absl/strings/substitute.h | 13 |
3 files changed, 10 insertions, 6 deletions
diff --git a/absl/strings/cord.cc b/absl/strings/cord.cc index 0403cc6eb767..1ddd6aec91ab 100644 --- a/absl/strings/cord.cc +++ b/absl/strings/cord.cc @@ -20,6 +20,7 @@ #include <cstdio> #include <cstdlib> #include <iomanip> +#include <iostream> #include <limits> #include <ostream> #include <sstream> diff --git a/absl/strings/cord.h b/absl/strings/cord.h index 86ae76fd7347..3be8d7d875f5 100644 --- a/absl/strings/cord.h +++ b/absl/strings/cord.h @@ -65,7 +65,7 @@ #include <cstddef> #include <cstdint> #include <cstring> -#include <iostream> +#include <iosfwd> #include <iterator> #include <string> #include <type_traits> diff --git a/absl/strings/substitute.h b/absl/strings/substitute.h index 92c472366335..c6da4dc6e722 100644 --- a/absl/strings/substitute.h +++ b/absl/strings/substitute.h @@ -120,7 +120,9 @@ class Arg { // representation. However, we can't really know, so we make the caller decide // what to do. Arg(char value) // NOLINT(runtime/explicit) - : piece_(scratch_, 1) { scratch_[0] = value; } + : piece_(scratch_, 1) { + scratch_[0] = value; + } Arg(short value) // NOLINT(*) : piece_(scratch_, numbers_internal::FastIntToBuffer(value, scratch_) - scratch_) {} @@ -203,10 +205,11 @@ constexpr const char* SkipNumber(const char* format) { } constexpr int PlaceholderBitmask(const char* format) { - return !*format ? 0 : *format != '$' - ? PlaceholderBitmask(format + 1) - : (CalculateOneBit(format + 1) | - PlaceholderBitmask(SkipNumber(format + 1))); + return !*format + ? 0 + : *format != '$' ? PlaceholderBitmask(format + 1) + : (CalculateOneBit(format + 1) | + PlaceholderBitmask(SkipNumber(format + 1))); } #endif // ABSL_BAD_CALL_IF |