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
d60c3ac6
Commit
d60c3ac6
authored
May 02, 2023
by
Vertexwahn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spelling mistakes
parent
3132b83a
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
21 additions
and
21 deletions
+21
-21
absl/container/flat_hash_set.h
+1
-1
absl/container/inlined_vector.h
+1
-1
absl/container/node_hash_map.h
+1
-1
absl/crc/internal/crc.h
+1
-1
absl/crc/internal/crc_cord_state.h
+1
-1
absl/crc/internal/crc_internal.h
+1
-1
absl/crc/internal/crc_x86_arm_combined.cc
+1
-1
absl/flags/commandlineflag.h
+1
-1
absl/flags/internal/flag.cc
+1
-1
absl/flags/internal/flag.h
+3
-3
absl/flags/internal/flag_msvc.inc
+1
-1
absl/functional/function_ref_test.cc
+1
-1
absl/random/internal/uniform_helper.h
+1
-1
absl/strings/internal/stl_type_traits.h
+1
-1
absl/synchronization/mutex.h
+1
-1
absl/synchronization/mutex_method_pointer_test.cc
+2
-2
absl/time/civil_time_test.cc
+1
-1
absl/time/time.cc
+1
-1
No files found.
absl/container/flat_hash_set.h
View file @
d60c3ac6
...
@@ -343,7 +343,7 @@ class flat_hash_set
...
@@ -343,7 +343,7 @@ class flat_hash_set
// for the past-the-end iterator, which is invalidated.
// for the past-the-end iterator, which is invalidated.
//
//
// `swap()` requires that the flat hash set's hashing and key equivalence
// `swap()` requires that the flat hash set's hashing and key equivalence
// functions be Swappable, and are exchaged using unqualified calls to
// functions be Swappable, and are excha
n
ged using unqualified calls to
// non-member `swap()`. If the set's allocator has
// non-member `swap()`. If the set's allocator has
// `std::allocator_traits<allocator_type>::propagate_on_container_swap::value`
// `std::allocator_traits<allocator_type>::propagate_on_container_swap::value`
// set to `true`, the allocators are also exchanged using an unqualified call
// set to `true`, the allocators are also exchanged using an unqualified call
...
...
absl/container/inlined_vector.h
View file @
d60c3ac6
...
@@ -816,7 +816,7 @@ class InlinedVector {
...
@@ -816,7 +816,7 @@ class InlinedVector {
void
MoveAssignment
(
MemcpyPolicy
,
InlinedVector
&&
other
)
{
void
MoveAssignment
(
MemcpyPolicy
,
InlinedVector
&&
other
)
{
// Assumption check: we shouldn't be told to use memcpy to implement move
// Assumption check: we shouldn't be told to use memcpy to implement move
// asignment unless we have trivially destructible elements and an allocator
// as
s
ignment unless we have trivially destructible elements and an allocator
// that does nothing fancy.
// that does nothing fancy.
static_assert
(
absl
::
is_trivially_destructible
<
value_type
>::
value
,
""
);
static_assert
(
absl
::
is_trivially_destructible
<
value_type
>::
value
,
""
);
static_assert
(
std
::
is_same
<
A
,
std
::
allocator
<
value_type
>>::
value
,
""
);
static_assert
(
std
::
is_same
<
A
,
std
::
allocator
<
value_type
>>::
value
,
""
);
...
...
absl/container/node_hash_map.h
View file @
d60c3ac6
...
@@ -404,7 +404,7 @@ class node_hash_map
...
@@ -404,7 +404,7 @@ class node_hash_map
// for the past-the-end iterator, which is invalidated.
// for the past-the-end iterator, which is invalidated.
//
//
// `swap()` requires that the node hash map's hashing and key equivalence
// `swap()` requires that the node hash map's hashing and key equivalence
// functions be Swappable, and are exchaged using unqualified calls to
// functions be Swappable, and are excha
n
ged using unqualified calls to
// non-member `swap()`. If the map's allocator has
// non-member `swap()`. If the map's allocator has
// `std::allocator_traits<allocator_type>::propagate_on_container_swap::value`
// `std::allocator_traits<allocator_type>::propagate_on_container_swap::value`
// set to `true`, the allocators are also exchanged using an unqualified call
// set to `true`, the allocators are also exchanged using an unqualified call
...
...
absl/crc/internal/crc.h
View file @
d60c3ac6
...
@@ -68,7 +68,7 @@ class CRC {
...
@@ -68,7 +68,7 @@ class CRC {
// any reduction of error-detection ability in the outer CRC.
// any reduction of error-detection ability in the outer CRC.
// Unscramble() performs the inverse transformation.
// Unscramble() performs the inverse transformation.
// It is strongly recommended that CRCs be scrambled before storage or
// It is strongly recommended that CRCs be scrambled before storage or
// transmission, and unscrambled at the other end before futher manipulation.
// transmission, and unscrambled at the other end before fu
r
ther manipulation.
virtual
void
Scramble
(
uint32_t
*
crc
)
const
=
0
;
virtual
void
Scramble
(
uint32_t
*
crc
)
const
=
0
;
virtual
void
Unscramble
(
uint32_t
*
crc
)
const
=
0
;
virtual
void
Unscramble
(
uint32_t
*
crc
)
const
=
0
;
...
...
absl/crc/internal/crc_cord_state.h
View file @
d60c3ac6
...
@@ -109,7 +109,7 @@ class CrcCordState {
...
@@ -109,7 +109,7 @@ class CrcCordState {
// Returns true if the chunked CRC32C cached is normalized.
// Returns true if the chunked CRC32C cached is normalized.
bool
IsNormalized
()
const
{
return
rep
().
removed_prefix
.
length
==
0
;
}
bool
IsNormalized
()
const
{
return
rep
().
removed_prefix
.
length
==
0
;
}
// Normalizes the chunked CRC32C checksum cache by sub
s
tracting any removed
// Normalizes the chunked CRC32C checksum cache by subtracting any removed
// prefix from the chunks.
// prefix from the chunks.
void
Normalize
();
void
Normalize
();
...
...
absl/crc/internal/crc_internal.h
View file @
d60c3ac6
...
@@ -60,7 +60,7 @@ constexpr uint64_t kScrambleHi = (static_cast<uint64_t>(0x4f1bbcdcU) << 32) |
...
@@ -60,7 +60,7 @@ constexpr uint64_t kScrambleHi = (static_cast<uint64_t>(0x4f1bbcdcU) << 32) |
constexpr
uint64_t
kScrambleLo
=
(
static_cast
<
uint64_t
>
(
0xf9ce6030U
)
<<
32
)
|
constexpr
uint64_t
kScrambleLo
=
(
static_cast
<
uint64_t
>
(
0xf9ce6030U
)
<<
32
)
|
static_cast
<
uint64_t
>
(
0x2e76e41bU
);
static_cast
<
uint64_t
>
(
0x2e76e41bU
);
class
CRCImpl
:
public
CRC
{
// Implemention of the abstract class CRC
class
CRCImpl
:
public
CRC
{
// Implement
at
ion of the abstract class CRC
public:
public:
using
Uint32By256
=
uint32_t
[
256
];
using
Uint32By256
=
uint32_t
[
256
];
...
...
absl/crc/internal/crc_x86_arm_combined.cc
View file @
d60c3ac6
...
@@ -515,7 +515,7 @@ class CRC32AcceleratedX86ARMCombinedMultipleStreams
...
@@ -515,7 +515,7 @@ class CRC32AcceleratedX86ARMCombinedMultipleStreams
}
}
for
(
size_t
i
=
1
;
i
<
bs
;
i
++
)
{
for
(
size_t
i
=
1
;
i
<
bs
;
i
++
)
{
// Prefetch data for next it
t
erations.
// Prefetch data for next iterations.
for
(
size_t
j
=
0
;
j
<
num_crc_streams
;
j
++
)
{
for
(
size_t
j
=
0
;
j
<
num_crc_streams
;
j
++
)
{
PrefetchToLocalCache
(
PrefetchToLocalCache
(
reinterpret_cast
<
const
char
*>
(
crc_streams
[
j
]
+
kPrefetchHorizon
));
reinterpret_cast
<
const
char
*>
(
crc_streams
[
j
]
+
kPrefetchHorizon
));
...
...
absl/flags/commandlineflag.h
View file @
d60c3ac6
...
@@ -186,7 +186,7 @@ class CommandLineFlag {
...
@@ -186,7 +186,7 @@ class CommandLineFlag {
// command line.
// command line.
virtual
bool
IsSpecifiedOnCommandLine
()
const
=
0
;
virtual
bool
IsSpecifiedOnCommandLine
()
const
=
0
;
// Validates supplied value usi
gn
validator or parseflag routine
// Validates supplied value usi
ng
validator or parseflag routine
virtual
bool
ValidateInputValue
(
absl
::
string_view
value
)
const
=
0
;
virtual
bool
ValidateInputValue
(
absl
::
string_view
value
)
const
=
0
;
// Checks that flags default value can be converted to string and back to the
// Checks that flags default value can be converted to string and back to the
...
...
absl/flags/internal/flag.cc
View file @
d60c3ac6
...
@@ -238,7 +238,7 @@ void FlagImpl::StoreValue(const void* src) {
...
@@ -238,7 +238,7 @@ void FlagImpl::StoreValue(const void* src) {
switch
(
ValueStorageKind
())
{
switch
(
ValueStorageKind
())
{
case
FlagValueStorageKind
:
:
kValueAndInitBit
:
case
FlagValueStorageKind
:
:
kValueAndInitBit
:
case
FlagValueStorageKind
:
:
kOneWordAtomic
:
{
case
FlagValueStorageKind
:
:
kOneWordAtomic
:
{
// Load the current value to avoid setting 'init' bit manualy.
// Load the current value to avoid setting 'init' bit manual
l
y.
int64_t
one_word_val
=
OneWordValue
().
load
(
std
::
memory_order_acquire
);
int64_t
one_word_val
=
OneWordValue
().
load
(
std
::
memory_order_acquire
);
std
::
memcpy
(
&
one_word_val
,
src
,
Sizeof
(
op_
));
std
::
memcpy
(
&
one_word_val
,
src
,
Sizeof
(
op_
));
OneWordValue
().
store
(
one_word_val
,
std
::
memory_order_release
);
OneWordValue
().
store
(
one_word_val
,
std
::
memory_order_release
);
...
...
absl/flags/internal/flag.h
View file @
d60c3ac6
...
@@ -223,12 +223,12 @@ extern const char kStrippedFlagHelp[];
...
@@ -223,12 +223,12 @@ extern const char kStrippedFlagHelp[];
// first overload if possible. If help message is evaluatable on constexpr
// first overload if possible. If help message is evaluatable on constexpr
// context We'll be able to make FixedCharArray out of it and we'll choose first
// context We'll be able to make FixedCharArray out of it and we'll choose first
// overload. In this case the help message expression is immediately evaluated
// overload. In this case the help message expression is immediately evaluated
// and is used to construct the absl::Flag. No additionl code is generated by
// and is used to construct the absl::Flag. No addition
a
l code is generated by
// ABSL_FLAG Otherwise SFINAE kicks in and first overload is dropped from the
// ABSL_FLAG Otherwise SFINAE kicks in and first overload is dropped from the
// consideration, in which case the second overload will be used. The second
// consideration, in which case the second overload will be used. The second
// overload does not attempt to evaluate the help message expression
// overload does not attempt to evaluate the help message expression
// immediately and instead delays the evaluation by returing the function
// immediately and instead delays the evaluation by retur
n
ing the function
// pointer (&T::NonConst) genering the help message when necessary. This is
// pointer (&T::NonConst) gener
at
ing the help message when necessary. This is
// evaluatable in constexpr context, but the cost is an extra function being
// evaluatable in constexpr context, but the cost is an extra function being
// generated in the ABSL_FLAG code.
// generated in the ABSL_FLAG code.
template
<
typename
Gen
,
size_t
N
>
template
<
typename
Gen
,
size_t
N
>
...
...
absl/flags/internal/flag_msvc.inc
View file @
d60c3ac6
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
// second level of protection is a global Mutex, so if two threads attempt to
// second level of protection is a global Mutex, so if two threads attempt to
// construct the flag concurrently only one wins.
// construct the flag concurrently only one wins.
//
//
// This solution is based on a recomendation here:
// This solution is based on a recom
m
endation here:
// https://developercommunity.visualstudio.com/content/problem/336946/class-with-constexpr-constructor-not-using-static.html?childToView=648454#comment-648454
// https://developercommunity.visualstudio.com/content/problem/336946/class-with-constexpr-constructor-not-using-static.html?childToView=648454#comment-648454
namespace
flags_internal
{
namespace
flags_internal
{
...
...
absl/functional/function_ref_test.cc
View file @
d60c3ac6
...
@@ -257,7 +257,7 @@ TEST(FunctionRef, PassByValueTypes) {
...
@@ -257,7 +257,7 @@ TEST(FunctionRef, PassByValueTypes) {
"Reference types should be preserved"
);
"Reference types should be preserved"
);
// Make sure the address of an object received by reference is the same as the
// Make sure the address of an object received by reference is the same as the
// addess of the object passed by the caller.
// add
r
ess of the object passed by the caller.
{
{
LargeTrivial
obj
;
LargeTrivial
obj
;
auto
test
=
[
&
obj
](
LargeTrivial
&
input
)
{
ASSERT_EQ
(
&
input
,
&
obj
);
};
auto
test
=
[
&
obj
](
LargeTrivial
&
input
)
{
ASSERT_EQ
(
&
input
,
&
obj
);
};
...
...
absl/random/internal/uniform_helper.h
View file @
d60c3ac6
...
@@ -217,7 +217,7 @@ using UniformDistribution =
...
@@ -217,7 +217,7 @@ using UniformDistribution =
// UniformDistributionWrapper is used as the underlying distribution type
// UniformDistributionWrapper is used as the underlying distribution type
// by the absl::Uniform template function. It selects the proper Abseil
// by the absl::Uniform template function. It selects the proper Abseil
// uniform distribution and provides constructor overloads that match the
// uniform distribution and provides constructor overloads that match the
// expected parameter order as well as adjusting distrib
tu
ion bounds based
// expected parameter order as well as adjusting distrib
ut
ion bounds based
// on the tag.
// on the tag.
template
<
typename
NumType
>
template
<
typename
NumType
>
struct
UniformDistributionWrapper
:
public
UniformDistribution
<
NumType
>
{
struct
UniformDistributionWrapper
:
public
UniformDistribution
<
NumType
>
{
...
...
absl/strings/internal/stl_type_traits.h
View file @
d60c3ac6
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
// limitations under the License.
// limitations under the License.
//
//
// Th
i
e file provides the IsStrictlyBaseOfAndConvertibleToSTLContainer type
// The file provides the IsStrictlyBaseOfAndConvertibleToSTLContainer type
// trait metafunction to assist in working with the _GLIBCXX_DEBUG debug
// trait metafunction to assist in working with the _GLIBCXX_DEBUG debug
// wrappers of STL containers.
// wrappers of STL containers.
//
//
...
...
absl/synchronization/mutex.h
View file @
d60c3ac6
...
@@ -273,7 +273,7 @@ class ABSL_LOCKABLE Mutex {
...
@@ -273,7 +273,7 @@ class ABSL_LOCKABLE Mutex {
// Aliases for `Mutex::Lock()`, `Mutex::Unlock()`, and `Mutex::TryLock()`.
// Aliases for `Mutex::Lock()`, `Mutex::Unlock()`, and `Mutex::TryLock()`.
//
//
// These methods may be used (along with the complementary `Reader*()`
// These methods may be used (along with the complementary `Reader*()`
// methods) to distingish simple exclusive `Mutex` usage (`Lock()`,
// methods) to disting
u
ish simple exclusive `Mutex` usage (`Lock()`,
// etc.) from reader/writer lock usage.
// etc.) from reader/writer lock usage.
void
WriterLock
()
ABSL_EXCLUSIVE_LOCK_FUNCTION
()
{
this
->
Lock
();
}
void
WriterLock
()
ABSL_EXCLUSIVE_LOCK_FUNCTION
()
{
this
->
Lock
();
}
...
...
absl/synchronization/mutex_method_pointer_test.cc
View file @
d60c3ac6
...
@@ -26,8 +26,8 @@ class IncompleteClass;
...
@@ -26,8 +26,8 @@ class IncompleteClass;
#ifdef _MSC_VER
#ifdef _MSC_VER
// These tests verify expectations about sizes of MSVC pointers to methods.
// These tests verify expectations about sizes of MSVC pointers to methods.
// Pointers to methods are distinguished by whether their class hierachies
// Pointers to methods are distinguished by whether their class hiera
r
chies
// contain single inheritance, multiple inheritance, or virtual inherit
e
nce.
// contain single inheritance, multiple inheritance, or virtual inherit
a
nce.
// Declare classes of the various MSVC inheritance types.
// Declare classes of the various MSVC inheritance types.
class
__single_inheritance
SingleInheritance
{};
class
__single_inheritance
SingleInheritance
{};
...
...
absl/time/civil_time_test.cc
View file @
d60c3ac6
...
@@ -1228,7 +1228,7 @@ TEST(CivilTime, DocumentationExample) {
...
@@ -1228,7 +1228,7 @@ TEST(CivilTime, DocumentationExample) {
EXPECT_EQ
(
0
,
day_floor
.
hour
());
// 09:09:09 is floored
EXPECT_EQ
(
0
,
day_floor
.
hour
());
// 09:09:09 is floored
EXPECT_EQ
(
absl
::
CivilDay
(
2015
,
1
,
2
),
day_floor
);
EXPECT_EQ
(
absl
::
CivilDay
(
2015
,
1
,
2
),
day_floor
);
// Unspecified fields default to their minium value
// Unspecified fields default to their mini
m
um value
absl
::
CivilDay
day_default
(
2015
);
// Defaults to Jan 1
absl
::
CivilDay
day_default
(
2015
);
// Defaults to Jan 1
EXPECT_EQ
(
absl
::
CivilDay
(
2015
,
1
,
1
),
day_default
);
EXPECT_EQ
(
absl
::
CivilDay
(
2015
,
1
,
1
),
day_default
);
...
...
absl/time/time.cc
View file @
d60c3ac6
...
@@ -137,7 +137,7 @@ inline TimeConversion InfinitePastTimeConversion() {
...
@@ -137,7 +137,7 @@ inline TimeConversion InfinitePastTimeConversion() {
}
}
// Makes a Time from sec, overflowing to InfiniteFuture/InfinitePast as
// Makes a Time from sec, overflowing to InfiniteFuture/InfinitePast as
// necessary. If sec is min/max, then consult cs+tz to check for overlow.
// necessary. If sec is min/max, then consult cs+tz to check for over
f
low.
Time
MakeTimeWithOverflow
(
const
cctz
::
time_point
<
cctz
::
seconds
>&
sec
,
Time
MakeTimeWithOverflow
(
const
cctz
::
time_point
<
cctz
::
seconds
>&
sec
,
const
cctz
::
civil_second
&
cs
,
const
cctz
::
civil_second
&
cs
,
const
cctz
::
time_zone
&
tz
,
const
cctz
::
time_zone
&
tz
,
...
...
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