Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
9c32e50d
Commit
9c32e50d
authored
Apr 27, 2023
by
Vertexwahn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spelling mistakes
parent
65109ecd
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
22 additions
and
22 deletions
+22
-22
absl/debugging/failure_signal_handler.h
+1
-1
absl/debugging/internal/demangle_test.cc
+1
-1
absl/debugging/internal/stacktrace_aarch64-inl.inc
+1
-1
absl/debugging/internal/stacktrace_powerpc-inl.inc
+1
-1
absl/flags/CMakeLists.txt
+1
-1
absl/flags/internal/flag.cc
+1
-1
absl/flags/parse.cc
+1
-1
absl/meta/type_traits.h
+1
-1
absl/random/discrete_distribution_test.cc
+1
-1
absl/random/internal/distribution_test_util.cc
+1
-1
absl/random/internal/fast_uniform_bits_test.cc
+1
-1
absl/random/internal/generate_real.h
+1
-1
absl/random/internal/mock_helpers.h
+1
-1
absl/random/internal/platform.h
+1
-1
absl/random/internal/randen_hwaes.cc
+1
-1
absl/status/status.h
+2
-2
absl/strings/internal/cord_rep_ring.h
+1
-1
absl/strings/internal/str_format/convert_test.cc
+1
-1
absl/strings/internal/str_format/extension.h
+1
-1
absl/strings/internal/str_format/float_conversion.cc
+1
-1
absl/types/optional_test.cc
+1
-1
No files found.
absl/debugging/failure_signal_handler.h
View file @
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 ex
h
austed. 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
;
...
...
absl/debugging/internal/demangle_test.cc
View file @
9c32e50d
...
@@ -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 boun
d
ary 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
)));
...
...
absl/debugging/internal/stacktrace_aarch64-inl.inc
View file @
9c32e50d
...
@@ -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 ad
d
ress 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
...
...
absl/debugging/internal/stacktrace_powerpc-inl.inc
View file @
9c32e50d
...
@@ -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 archi
t
ecture.
#endif
#endif
}
}
...
...
absl/flags/CMakeLists.txt
View file @
9c32e50d
...
@@ -297,7 +297,7 @@ absl_cc_library(
...
@@ -297,7 +297,7 @@ absl_cc_library(
)
)
############################################################################
############################################################################
# Unit tests in alp
a
habetical order.
# Unit tests in alphabetical order.
absl_cc_test
(
absl_cc_test
(
NAME
NAME
...
...
absl/flags/internal/flag.cc
View file @
9c32e50d
...
@@ -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
// visib
i
le 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
;
...
...
absl/flags/parse.cc
View file @
9c32e50d
...
@@ -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 com
am
nd line arguments. Since we always the process most recently
// of the com
ma
nd 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
...
...
absl/meta/type_traits.h
View file @
9c32e50d
...
@@ -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 triv
i
ally 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
>
,
...
...
absl/random/discrete_distribution_test.cc
View file @
9c32e50d
...
@@ -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 act
u
ally +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.
...
...
absl/random/internal/distribution_test_util.cc
View file @
9c32e50d
...
@@ -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 Al
og
rithm 708.
// NOTE: See also TOMS Al
go
rithm 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)
...
...
absl/random/internal/fast_uniform_bits_test.cc
View file @
9c32e50d
...
@@ -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 cho
o
sen 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
>
;
...
...
absl/random/internal/generate_real.h
View file @
9c32e50d
...
@@ -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 unsi
ng
ed and real types."
);
"Mismatched unsi
gn
ed 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
),
...
...
absl/random/internal/mock_helpers.h
View file @
9c32e50d
...
@@ -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 implemen
t
ation 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
,
...
...
absl/random/internal/platform.h
View file @
9c32e50d
...
@@ -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.
// acc
e
lerated 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)
...
...
absl/random/internal/randen_hwaes.cc
View file @
9c32e50d
...
@@ -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 pla
t
forms 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)
...
...
absl/status/status.h
View file @
9c32e50d
...
@@ -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 contex
t
ual 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 contex
t
ual 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
...
...
absl/strings/internal/cord_rep_ring.h
View file @
9c32e50d
...
@@ -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 max
m
imum 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
);
...
...
absl/strings/internal/str_format/convert_test.cc
View file @
9c32e50d
...
@@ -1241,7 +1241,7 @@ TEST_F(FormatConvertTest, GlibcHasCorrectTraits) {
...
@@ -1241,7 +1241,7 @@ 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 implement
at
ion of glibc sprintf float formatting behavior.
// If the latter, then the code that computes these flags needs to be
// If the latter, then the code that computes these flags needs to be
// revisited and/or possibly the StrFormat implementation.
// 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
);
...
...
absl/strings/internal/str_format/extension.h
View file @
9c32e50d
...
@@ -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 precis
i
on 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
{
...
...
absl/strings/internal/str_format/float_conversion.cc
View file @
9c32e50d
...
@@ -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
// requ
i
red for FastIntToBuffer
+
1
// 'p' or 'P'
+
1
// 'p' or 'P'
+
1
;
// '+' or '-'
+
1
;
// '+' or '-'
char
exp_buffer
[
kBufSizeForExpDecRepr
];
char
exp_buffer
[
kBufSizeForExpDecRepr
];
...
...
absl/types/optional_test.cc
View file @
9c32e50d
...
@@ -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 i
ng
ores the cv-qualifier when generating a
// The compiler some incorrectly i
gn
ores 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 {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment