Commit 201c426c by Copybara-Service

Merge pull request #1438 from Vertexwahn:fix-spelling

PiperOrigin-RevId: 528547013
Change-Id: I9b57ee062ef666d6a34696778ff16a46c5ccb17d
parents e9a7eea6 9c32e50d
...@@ -62,7 +62,7 @@ struct FailureSignalHandlerOptions { ...@@ -62,7 +62,7 @@ struct FailureSignalHandlerOptions {
// If true, try to run signal handlers on an alternate stack (if supported on // If true, try to run signal handlers on an alternate stack (if supported on
// the given platform). An alternate stack is useful for program crashes due // the given platform). An alternate stack is useful for program crashes due
// to a stack overflow; by running on a alternate stack, the signal handler // to a stack overflow; by running on a alternate stack, the signal handler
// may run even when normal stack space has been exausted. The downside of // may run even when normal stack space has been exhausted. The downside of
// using an alternate stack is that extra memory for the alternate stack needs // using an alternate stack is that extra memory for the alternate stack needs
// to be pre-allocated. // to be pre-allocated.
bool use_alternate_stack = true; bool use_alternate_stack = true;
......
...@@ -38,7 +38,7 @@ static const char *DemangleIt(const char * const mangled) { ...@@ -38,7 +38,7 @@ static const char *DemangleIt(const char * const mangled) {
} }
} }
// Test corner cases of bounary conditions. // Test corner cases of boundary conditions.
TEST(Demangle, CornerCases) { TEST(Demangle, CornerCases) {
char tmp[10]; char tmp[10];
EXPECT_TRUE(Demangle("_Z6foobarv", tmp, sizeof(tmp))); EXPECT_TRUE(Demangle("_Z6foobarv", tmp, sizeof(tmp)));
......
...@@ -144,7 +144,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, ...@@ -144,7 +144,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count,
// The frame pointer points to low address of a frame. The first 64-bit // The frame pointer points to low address of a frame. The first 64-bit
// word of a frame points to the next frame up the call chain, which normally // word of a frame points to the next frame up the call chain, which normally
// is just after the high address of the current frame. The second word of // is just after the high address of the current frame. The second word of
// a frame contains return adress of to the caller. To find a pc value // a frame contains return address of to the caller. To find a pc value
// associated with the current frame, we need to go down a level in the call // associated with the current frame, we need to go down a level in the call
// chain. So we remember return the address of the last frame seen. This // chain. So we remember return the address of the last frame seen. This
// does not work for the first stack frame, which belongs to UnwindImp() but // does not work for the first stack frame, which belongs to UnwindImp() but
......
...@@ -57,7 +57,7 @@ static inline void *StacktracePowerPCGetLR(void **sp) { ...@@ -57,7 +57,7 @@ static inline void *StacktracePowerPCGetLR(void **sp) {
// This check is in case the compiler doesn't define _CALL_SYSV. // This check is in case the compiler doesn't define _CALL_SYSV.
return *(sp+1); return *(sp+1);
#else #else
#error Need to specify the PPC ABI for your archiecture. #error Need to specify the PPC ABI for your architecture.
#endif #endif
} }
......
...@@ -297,7 +297,7 @@ absl_cc_library( ...@@ -297,7 +297,7 @@ absl_cc_library(
) )
############################################################################ ############################################################################
# Unit tests in alpahabetical order. # Unit tests in alphabetical order.
absl_cc_test( absl_cc_test(
NAME NAME
......
...@@ -197,7 +197,7 @@ void FlagImpl::AssertValidType(FlagFastTypeId rhs_type_id, ...@@ -197,7 +197,7 @@ void FlagImpl::AssertValidType(FlagFastTypeId rhs_type_id,
FlagFastTypeId lhs_type_id = flags_internal::FastTypeId(op_); FlagFastTypeId lhs_type_id = flags_internal::FastTypeId(op_);
// `rhs_type_id` is the fast type id corresponding to the declaration // `rhs_type_id` is the fast type id corresponding to the declaration
// visibile at the call site. `lhs_type_id` is the fast type id // visible at the call site. `lhs_type_id` is the fast type id
// corresponding to the type specified in flag definition. They must match // corresponding to the type specified in flag definition. They must match
// for this operation to be well-defined. // for this operation to be well-defined.
if (ABSL_PREDICT_TRUE(lhs_type_id == rhs_type_id)) return; if (ABSL_PREDICT_TRUE(lhs_type_id == rhs_type_id)) return;
......
...@@ -417,7 +417,7 @@ bool HandleGeneratorFlags(std::vector<ArgsList>& input_args, ...@@ -417,7 +417,7 @@ bool HandleGeneratorFlags(std::vector<ArgsList>& input_args,
// programmatically before invoking ParseCommandLine. Note that we do not // programmatically before invoking ParseCommandLine. Note that we do not
// actually process arguments specified in the flagfile, but instead // actually process arguments specified in the flagfile, but instead
// create a secondary arguments list to be processed along with the rest // create a secondary arguments list to be processed along with the rest
// of the comamnd line arguments. Since we always the process most recently // of the command line arguments. Since we always the process most recently
// created list of arguments first, this will result in flagfile argument // created list of arguments first, this will result in flagfile argument
// being processed before any other argument in the command line. If // being processed before any other argument in the command line. If
// FLAGS_flagfile contains more than one file name we create multiple new // FLAGS_flagfile contains more than one file name we create multiple new
......
...@@ -505,7 +505,7 @@ struct is_trivially_relocatable ...@@ -505,7 +505,7 @@ struct is_trivially_relocatable
#else #else
// Otherwise we use a fallback that detects only those types we can feasibly // Otherwise we use a fallback that detects only those types we can feasibly
// detect. Any time that has trivial move-construction and destruction // detect. Any time that has trivial move-construction and destruction
// operations is by definition trivally relocatable. // operations is by definition trivially relocatable.
template <class T> template <class T>
struct is_trivially_relocatable struct is_trivially_relocatable
: absl::conjunction<absl::is_trivially_move_constructible<T>, : absl::conjunction<absl::is_trivially_move_constructible<T>,
......
...@@ -146,7 +146,7 @@ TEST(DiscreteDistributionTest, ChiSquaredTest50) { ...@@ -146,7 +146,7 @@ TEST(DiscreteDistributionTest, ChiSquaredTest50) {
using absl::random_internal::kChiSquared; using absl::random_internal::kChiSquared;
constexpr size_t kTrials = 10000; constexpr size_t kTrials = 10000;
constexpr int kBuckets = 50; // inclusive, so actally +1 constexpr int kBuckets = 50; // inclusive, so actually +1
// 1-in-100000 threshold, but remember, there are about 8 tests // 1-in-100000 threshold, but remember, there are about 8 tests
// in this file. And the test could fail for other reasons. // in this file. And the test could fail for other reasons.
......
...@@ -236,7 +236,7 @@ double BetaIncompleteImpl(const double x, const double p, const double q, ...@@ -236,7 +236,7 @@ double BetaIncompleteImpl(const double x, const double p, const double q,
} }
} }
// NOTE: See also TOMS Alogrithm 708. // NOTE: See also TOMS Algorithm 708.
// http://www.netlib.org/toms/index.html // http://www.netlib.org/toms/index.html
// //
// NOTE: The NWSC library also includes BRATIO / ISUBX (p87) // NOTE: The NWSC library also includes BRATIO / ISUBX (p87)
......
...@@ -167,7 +167,7 @@ TEST(FastUniformBitsTest, RangeSize) { ...@@ -167,7 +167,7 @@ TEST(FastUniformBitsTest, RangeSize) {
FakeUrbg<uint64_t, 0, (std::numeric_limits<uint64_t>::max)()>>())); FakeUrbg<uint64_t, 0, (std::numeric_limits<uint64_t>::max)()>>()));
} }
// The constants need to be choosen so that an infinite rejection loop doesn't // The constants need to be chosen so that an infinite rejection loop doesn't
// happen... // happen...
using Urng1_5bit = FakeUrbg<uint8_t, 0, 2, 0>; // ~1.5 bits (range 3) using Urng1_5bit = FakeUrbg<uint8_t, 0, 2, 0>; // ~1.5 bits (range 3)
using Urng4bits = FakeUrbg<uint8_t, 1, 0x10, 2>; using Urng4bits = FakeUrbg<uint8_t, 1, 0x10, 2>;
......
...@@ -78,7 +78,7 @@ inline RealType GenerateRealFromBits(uint64_t bits, int exp_bias = 0) { ...@@ -78,7 +78,7 @@ inline RealType GenerateRealFromBits(uint64_t bits, int exp_bias = 0) {
"GenerateRealFromBits must be parameterized by either float or double."); "GenerateRealFromBits must be parameterized by either float or double.");
static_assert(sizeof(uint_type) == sizeof(real_type), static_assert(sizeof(uint_type) == sizeof(real_type),
"Mismatched unsinged and real types."); "Mismatched unsigned and real types.");
static_assert((std::numeric_limits<real_type>::is_iec559 && static_assert((std::numeric_limits<real_type>::is_iec559 &&
std::numeric_limits<real_type>::radix == 2), std::numeric_limits<real_type>::radix == 2),
......
...@@ -101,7 +101,7 @@ class MockHelpers { ...@@ -101,7 +101,7 @@ class MockHelpers {
template <typename KeyT, typename URBG, typename... Args> template <typename KeyT, typename URBG, typename... Args>
static auto MaybeInvokeMock(URBG* urbg, Args&&... args) static auto MaybeInvokeMock(URBG* urbg, Args&&... args)
-> absl::optional<typename KeySignature<KeyT>::result_type> { -> absl::optional<typename KeySignature<KeyT>::result_type> {
// Use function overloading to dispatch to the implemenation since // Use function overloading to dispatch to the implementation since
// more modern patterns (e.g. require + constexpr) are not supported in all // more modern patterns (e.g. require + constexpr) are not supported in all
// compiler configurations. // compiler configurations.
return InvokeMockImpl<KeyT, typename KeySignature<KeyT>::result_type, return InvokeMockImpl<KeyT, typename KeySignature<KeyT>::result_type,
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
// ABSL_RANDOM_INTERNAL_AES_DISPATCH indicates whether the currently active // ABSL_RANDOM_INTERNAL_AES_DISPATCH indicates whether the currently active
// platform has, or should use run-time dispatch for selecting the // platform has, or should use run-time dispatch for selecting the
// acclerated Randen implementation. // accelerated Randen implementation.
#define ABSL_RANDOM_INTERNAL_AES_DISPATCH 0 #define ABSL_RANDOM_INTERNAL_AES_DISPATCH 0
#if defined(ABSL_ARCH_X86_64) #if defined(ABSL_ARCH_X86_64)
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
// a hardware accelerated implementation of randen, or whether it // a hardware accelerated implementation of randen, or whether it
// will contain stubs that exit the process. // will contain stubs that exit the process.
#if ABSL_HAVE_ACCELERATED_AES #if ABSL_HAVE_ACCELERATED_AES
// The following plaforms have implemented RandenHwAes. // The following platforms have implemented RandenHwAes.
#if defined(ABSL_ARCH_X86_64) || defined(ABSL_ARCH_X86_32) || \ #if defined(ABSL_ARCH_X86_64) || defined(ABSL_ARCH_X86_32) || \
defined(ABSL_ARCH_PPC) || defined(ABSL_ARCH_ARM) || \ defined(ABSL_ARCH_PPC) || defined(ABSL_ARCH_ARM) || \
defined(ABSL_ARCH_AARCH64) defined(ABSL_ARCH_AARCH64)
......
...@@ -398,7 +398,7 @@ inline StatusToStringMode& operator^=(StatusToStringMode& lhs, ...@@ -398,7 +398,7 @@ inline StatusToStringMode& operator^=(StatusToStringMode& lhs,
// //
// * It may provide more fine-grained semantic information about the error to // * It may provide more fine-grained semantic information about the error to
// facilitate actionable remedies. // facilitate actionable remedies.
// * It may provide human-readable contexual information that is more // * It may provide human-readable contextual information that is more
// appropriate to display to an end user. // appropriate to display to an end user.
// //
// Example: // Example:
...@@ -538,7 +538,7 @@ class Status final { ...@@ -538,7 +538,7 @@ class Status final {
// //
// * It may provide more fine-grained semantic information about the error // * It may provide more fine-grained semantic information about the error
// to facilitate actionable remedies. // to facilitate actionable remedies.
// * It may provide human-readable contexual information that is more // * It may provide human-readable contextual information that is more
// appropriate to display to an end user. // appropriate to display to an end user.
// //
// A payload consists of a [key,value] pair, where the key is a string // A payload consists of a [key,value] pair, where the key is a string
......
...@@ -430,7 +430,7 @@ class CordRepRing : public CordRep { ...@@ -430,7 +430,7 @@ class CordRepRing : public CordRep {
// capacity to satisfy `extra` extra nodes, and unref the old `rep` instance. // capacity to satisfy `extra` extra nodes, and unref the old `rep` instance.
// //
// If a new CordRepRing can not be allocated, or the new capacity would exceed // If a new CordRepRing can not be allocated, or the new capacity would exceed
// the maxmimum capacity, then the input is consumed only, and an exception is // the maximum capacity, then the input is consumed only, and an exception is
// thrown. // thrown.
static CordRepRing* Mutable(CordRepRing* rep, size_t extra); static CordRepRing* Mutable(CordRepRing* rep, size_t extra);
......
...@@ -1241,9 +1241,9 @@ TEST_F(FormatConvertTest, GlibcHasCorrectTraits) { ...@@ -1241,9 +1241,9 @@ TEST_F(FormatConvertTest, GlibcHasCorrectTraits) {
const NativePrintfTraits &native_traits = VerifyNativeImplementation(); const NativePrintfTraits &native_traits = VerifyNativeImplementation();
// If one of the following tests break then it is either because the above PP // If one of the following tests break then it is either because the above PP
// macro guards failed to exclude a new platform (likely) or because something // macro guards failed to exclude a new platform (likely) or because something
// has changed in the implemention of glibc sprintf float formatting behavior. // has changed in the implementation of glibc sprintf float formatting
// If the latter, then the code that computes these flags needs to be // behavior. If the latter, then the code that computes these flags needs to
// revisited and/or possibly the StrFormat implementation. // be revisited and/or possibly the StrFormat implementation.
EXPECT_TRUE(native_traits.hex_float_has_glibc_rounding); EXPECT_TRUE(native_traits.hex_float_has_glibc_rounding);
EXPECT_TRUE(native_traits.hex_float_prefers_denormal_repr); EXPECT_TRUE(native_traits.hex_float_prefers_denormal_repr);
EXPECT_TRUE( EXPECT_TRUE(
......
...@@ -273,7 +273,7 @@ struct FormatConversionSpecImplFriend; ...@@ -273,7 +273,7 @@ struct FormatConversionSpecImplFriend;
class FormatConversionSpecImpl { class FormatConversionSpecImpl {
public: public:
// Width and precison are not specified, no flags are set. // Width and precision are not specified, no flags are set.
bool is_basic() const { return flags_ == Flags::kBasic; } bool is_basic() const { return flags_ == Flags::kBasic; }
bool has_left_flag() const { return FlagsContains(flags_, Flags::kLeft); } bool has_left_flag() const { return FlagsContains(flags_, Flags::kLeft); }
bool has_show_pos_flag() const { bool has_show_pos_flag() const {
......
...@@ -937,7 +937,7 @@ void FormatA(const HexFloatTypeParams float_traits, Int mantissa, int exp, ...@@ -937,7 +937,7 @@ void FormatA(const HexFloatTypeParams float_traits, Int mantissa, int exp,
// =============== Exponent ================== // =============== Exponent ==================
constexpr size_t kBufSizeForExpDecRepr = constexpr size_t kBufSizeForExpDecRepr =
numbers_internal::kFastToBufferSize // requred for FastIntToBuffer numbers_internal::kFastToBufferSize // required for FastIntToBuffer
+ 1 // 'p' or 'P' + 1 // 'p' or 'P'
+ 1; // '+' or '-' + 1; // '+' or '-'
char exp_buffer[kBufSizeForExpDecRepr]; char exp_buffer[kBufSizeForExpDecRepr];
......
...@@ -996,7 +996,7 @@ TEST(optionalTest, PointerStuff) { ...@@ -996,7 +996,7 @@ TEST(optionalTest, PointerStuff) {
// MSVC has a bug with "cv-qualifiers in class construction", fixed in 2017. See // MSVC has a bug with "cv-qualifiers in class construction", fixed in 2017. See
// https://docs.microsoft.com/en-us/cpp/cpp-conformance-improvements-2017#bug-fixes // https://docs.microsoft.com/en-us/cpp/cpp-conformance-improvements-2017#bug-fixes
// The compiler some incorrectly ingores the cv-qualifier when generating a // The compiler some incorrectly ignores the cv-qualifier when generating a
// class object via a constructor call. For example: // class object via a constructor call. For example:
// //
// class optional { // class optional {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment