Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1650f1b

Browse files
authored
Fix typo "indicies" (llvm#92232)
1 parent ccbf908 commit 1650f1b

36 files changed

Lines changed: 114 additions & 113 deletions

File tree

clang/include/clang/AST/VTTBuilder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class VTTBuilder {
9292
using AddressPointsMapTy = llvm::DenseMap<BaseSubobject, uint64_t>;
9393

9494
/// The sub-VTT indices for the bases of the most derived class.
95-
llvm::DenseMap<BaseSubobject, uint64_t> SubVTTIndicies;
95+
llvm::DenseMap<BaseSubobject, uint64_t> SubVTTIndices;
9696

9797
/// The secondary virtual pointer indices of all subobjects of
9898
/// the most derived class.
@@ -148,8 +148,8 @@ class VTTBuilder {
148148
}
149149

150150
/// Returns a reference to the sub-VTT indices.
151-
const llvm::DenseMap<BaseSubobject, uint64_t> &getSubVTTIndicies() const {
152-
return SubVTTIndicies;
151+
const llvm::DenseMap<BaseSubobject, uint64_t> &getSubVTTIndices() const {
152+
return SubVTTIndices;
153153
}
154154

155155
/// Returns a reference to the secondary virtual pointer indices.

clang/lib/AST/VTTBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void VTTBuilder::LayoutVTT(BaseSubobject Base, bool BaseIsVirtual) {
189189

190190
if (!IsPrimaryVTT) {
191191
// Remember the sub-VTT index.
192-
SubVTTIndicies[Base] = VTTComponents.size();
192+
SubVTTIndices[Base] = VTTComponents.size();
193193
}
194194

195195
uint64_t VTableIndex = VTTVTables.size();

clang/lib/CodeGen/CGVTT.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,24 @@ uint64_t CodeGenVTables::getSubVTTIndex(const CXXRecordDecl *RD,
138138
BaseSubobject Base) {
139139
BaseSubobjectPairTy ClassSubobjectPair(RD, Base);
140140

141-
SubVTTIndiciesMapTy::iterator I = SubVTTIndicies.find(ClassSubobjectPair);
142-
if (I != SubVTTIndicies.end())
141+
SubVTTIndicesMapTy::iterator I = SubVTTIndices.find(ClassSubobjectPair);
142+
if (I != SubVTTIndices.end())
143143
return I->second;
144144

145145
VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false);
146146

147-
for (llvm::DenseMap<BaseSubobject, uint64_t>::const_iterator I =
148-
Builder.getSubVTTIndicies().begin(),
149-
E = Builder.getSubVTTIndicies().end(); I != E; ++I) {
147+
for (llvm::DenseMap<BaseSubobject, uint64_t>::const_iterator
148+
I = Builder.getSubVTTIndices().begin(),
149+
E = Builder.getSubVTTIndices().end();
150+
I != E; ++I) {
150151
// Insert all indices.
151152
BaseSubobjectPairTy ClassSubobjectPair(RD, I->first);
152153

153-
SubVTTIndicies.insert(std::make_pair(ClassSubobjectPair, I->second));
154+
SubVTTIndices.insert(std::make_pair(ClassSubobjectPair, I->second));
154155
}
155156

156-
I = SubVTTIndicies.find(ClassSubobjectPair);
157-
assert(I != SubVTTIndicies.end() && "Did not find index!");
157+
I = SubVTTIndices.find(ClassSubobjectPair);
158+
assert(I != SubVTTIndices.end() && "Did not find index!");
158159

159160
return I->second;
160161
}

clang/lib/CodeGen/CGVTables.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class CodeGenVTables {
3838
typedef VTableLayout::AddressPointsMapTy VTableAddressPointsMapTy;
3939

4040
typedef std::pair<const CXXRecordDecl *, BaseSubobject> BaseSubobjectPairTy;
41-
typedef llvm::DenseMap<BaseSubobjectPairTy, uint64_t> SubVTTIndiciesMapTy;
41+
typedef llvm::DenseMap<BaseSubobjectPairTy, uint64_t> SubVTTIndicesMapTy;
4242

43-
/// SubVTTIndicies - Contains indices into the various sub-VTTs.
44-
SubVTTIndiciesMapTy SubVTTIndicies;
43+
/// SubVTTIndices - Contains indices into the various sub-VTTs.
44+
SubVTTIndicesMapTy SubVTTIndices;
4545

4646
typedef llvm::DenseMap<BaseSubobjectPairTy, uint64_t>
4747
SecondaryVirtualPointerIndicesMapTy;

cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexExpectStepOrder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class DexExpectStepOrder(CommandBase):
1414
"""Expect the line every `DexExpectStepOrder` is found on to be stepped on
15-
in `order`. Each instance must have a set of unique ascending indicies.
15+
in `order`. Each instance must have a set of unique ascending indices.
1616
1717
DexExpectStepOrder(*order)
1818

flang/docs/HighLevelFIR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ Syntax:
590590

591591
Note that %indices are not operands, they are the elemental region block
592592
arguments, representing the array iteration space in a one based fashion.
593-
The choice of using one based indicies is to match Fortran default for
593+
The choice of using one based indices is to match Fortran default for
594594
array variables, so that there is no need to generate bound adjustments
595595
when working with one based array variables in an expression.
596596

flang/test/Lower/HLFIR/forall.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ subroutine test_nested_foralls()
144144
! ifoo and ibar could depend on x since it is a module
145145
! variable use associated. The calls in the control value
146146
! computation cannot be hoisted from the outer forall
147-
! even when they do not depend on outer forall indicies.
147+
! even when they do not depend on outer forall indices.
148148
forall (integer(8)::j=jfoo():jbar())
149149
x(i, j) = x(j, i)
150150
end forall

libc/src/stdio/printf_core/parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ template <typename ArgProvider> class Parser {
496496
// the type of index, and returns a TypeDesc describing that type. It does not
497497
// modify cur_pos.
498498
LIBC_INLINE TypeDesc get_type_desc(size_t index) {
499-
// index mode is assumed, and the indicies start at 1, so an index
499+
// index mode is assumed, and the indices start at 1, so an index
500500
// of 0 is invalid.
501501
size_t local_pos = 0;
502502

libcxx/test/std/containers/views/mdspan/CustomTestLayouts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <utility>
3030

3131
// Layout that wraps indices to test some idiosyncratic behavior
32-
// - basically it is a layout_left where indicies are first wrapped i.e. i%Wrap
32+
// - basically it is a layout_left where indices are first wrapped i.e. i%Wrap
3333
// - only accepts integers as indices
3434
// - is_always_strided and is_always_unique are false
3535
// - is_strided and is_unique are true if all extents are smaller than Wrap

llvm/docs/GlobalISel/GenericOpcode.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ source vector should be inserted into.
644644
The index must be a constant multiple of the second source vector's minimum
645645
vector length. If the vectors are scalable, then the index is first scaled by
646646
the runtime scaling factor. The indices inserted in the source vector must be
647-
valid indicies of that vector. If this condition cannot be determined statically
647+
valid indices of that vector. If this condition cannot be determined statically
648648
but is false at runtime, then the result vector is undefined.
649649

650650
.. code-block:: none
@@ -661,7 +661,7 @@ the source vector.
661661
The index must be a constant multiple of the source vector's minimum vector
662662
length. If the source vector is a scalable vector, then the index is first
663663
scaled by the runtime scaling factor. The indices extracted from the source
664-
vector must be valid indicies of that vector. If this condition cannot be
664+
vector must be valid indices of that vector. If this condition cannot be
665665
determined statically but is false at runtime, then the result vector is
666666
undefined.
667667

0 commit comments

Comments
 (0)