Skip to content

Commit d4a0154

Browse files
authored
[llvm-project] Fix typo "seperate" (#95373)
1 parent cd94fa7 commit d4a0154

File tree

64 files changed

+106
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+106
-106
lines changed

clang-tools-extra/clangd/TidyProvider.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ TidyProvider addTidyChecks(llvm::StringRef Checks,
195195
}
196196

197197
TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
198-
constexpr llvm::StringLiteral Seperator(",");
198+
constexpr llvm::StringLiteral Separator(",");
199199
static const std::string BadChecks = llvm::join_items(
200-
Seperator,
201-
// We want this list to start with a seperator to
200+
Separator,
201+
// We want this list to start with a separator to
202202
// simplify appending in the lambda. So including an
203203
// empty string here will force that.
204204
"",
@@ -227,7 +227,7 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
227227
for (const std::string &Str : ExtraBadChecks) {
228228
if (Str.empty())
229229
continue;
230-
Size += Seperator.size();
230+
Size += Separator.size();
231231
if (LLVM_LIKELY(Str.front() != '-'))
232232
++Size;
233233
Size += Str.size();
@@ -238,7 +238,7 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
238238
for (const std::string &Str : ExtraBadChecks) {
239239
if (Str.empty())
240240
continue;
241-
DisableGlob += Seperator;
241+
DisableGlob += Separator;
242242
if (LLVM_LIKELY(Str.front() != '-'))
243243
DisableGlob.push_back('-');
244244
DisableGlob += Str;

clang/include/clang/Frontend/FrontendOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ class FrontendOptions {
520520
std::string ProductName;
521521

522522
// Currently this is only used as part of the `-extract-api` action.
523-
// A comma seperated list of files providing a list of APIs to
523+
// A comma separated list of files providing a list of APIs to
524524
// ignore when extracting documentation.
525525
std::vector<std::string> ExtractAPIIgnoresFileList;
526526

clang/include/clang/InstallAPI/DylibVerifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class DylibVerifier : llvm::MachO::RecordVisitor {
135135

136136
// Check if an internal declaration in zippered library has an
137137
// external declaration for a different platform. This results
138-
// in the symbol being in a "seperate" platform slice.
138+
// in the symbol being in a "separate" platform slice.
139139
bool shouldIgnoreInternalZipperedSymbol(const Record *R,
140140
const SymbolContext &SymCtx) const;
141141

clang/lib/InstallAPI/Visitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ bool InstallAPIVisitor::VisitVarDecl(const VarDecl *D) {
218218
if (isa<ParmVarDecl>(D))
219219
return true;
220220

221-
// Skip variables in records. They are handled seperately for C++.
221+
// Skip variables in records. They are handled separately for C++.
222222
if (D->getDeclContext()->isRecord())
223223
return true;
224224

clang/lib/Serialization/ASTWriterStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace clang {
3737
unsigned AbbrevToUse;
3838

3939
/// A helper that can help us to write a packed bit across function
40-
/// calls. For example, we may write seperate bits in seperate functions:
40+
/// calls. For example, we may write separate bits in separate functions:
4141
///
4242
/// void VisitA(A* a) {
4343
/// Record.push_back(a->isSomething());

compiler-rt/test/dfsan/custom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ void test_sscanf() {
22802280
// %n, %s, %d, %f, and %% already tested
22812281
}
22822282

2283-
// Tested by a seperate source file. This empty function is here to appease the
2283+
// Tested by a separate source file. This empty function is here to appease the
22842284
// check-wrappers script.
22852285
void test_fork() {}
22862286

compiler-rt/test/orc/TestCases/Linux/ppc64/trivial-tls-pwr10.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %clangxx -fPIC -c -o %t/main.o %S/Inputs/trivial-tls-main.cpp
33
// RUN: %clangxx -fPIC -c -o %t/pwr10.o %S/Inputs/trivial-tls-pwr10.cpp
44
// RUN: %llvm_jitlink %t/main.o %t/pwr10.o
5-
// FIXME: We seperate pwr10 code from main object file due to currrent
5+
// FIXME: We separate pwr10 code from main object file due to currrent
66
// implementation only supports one PLT stub for the same symbol.
77
// For example, `bl __tls_get_addr` in one object file has only one PLT stub,
88
// however we need another different PLT stub for `bl __tls_get_addr@notoc`

flang/examples/FlangOmpReport/yaml_summarizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Parameters:
2222
2323
-d --directory Specify which directory to scan. Multiple directories can be searched by
24-
providing a semicolon seperated list of directories.
24+
providing a semicolon separated list of directories.
2525
2626
-l --log Combine all yaml files into one log (instead of generating a summary)
2727

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@ void OmpStructureChecker::CheckIsLoopIvPartOfClause(
27812781
}
27822782
}
27832783
}
2784-
// Following clauses have a seperate node in parse-tree.h.
2784+
// Following clauses have a separate node in parse-tree.h.
27852785
// Atomic-clause
27862786
CHECK_SIMPLE_PARSER_CLAUSE(OmpAtomicRead, OMPC_read)
27872787
CHECK_SIMPLE_PARSER_CLAUSE(OmpAtomicWrite, OMPC_write)
@@ -2887,18 +2887,18 @@ void OmpStructureChecker::CheckAllowedMapTypes(
28872887
const parser::OmpMapType::Type &type,
28882888
const std::list<parser::OmpMapType::Type> &allowedMapTypeList) {
28892889
if (!llvm::is_contained(allowedMapTypeList, type)) {
2890-
std::string commaSeperatedMapTypes;
2890+
std::string commaSeparatedMapTypes;
28912891
llvm::interleave(
28922892
allowedMapTypeList.begin(), allowedMapTypeList.end(),
28932893
[&](const parser::OmpMapType::Type &mapType) {
2894-
commaSeperatedMapTypes.append(parser::ToUpperCaseLetters(
2894+
commaSeparatedMapTypes.append(parser::ToUpperCaseLetters(
28952895
parser::OmpMapType::EnumToString(mapType)));
28962896
},
2897-
[&] { commaSeperatedMapTypes.append(", "); });
2897+
[&] { commaSeparatedMapTypes.append(", "); });
28982898
context_.Say(GetContext().clauseSource,
28992899
"Only the %s map types are permitted "
29002900
"for MAP clauses on the %s directive"_err_en_US,
2901-
commaSeperatedMapTypes, ContextDirectiveAsFortran());
2901+
commaSeparatedMapTypes, ContextDirectiveAsFortran());
29022902
}
29032903
}
29042904

flang/test/Driver/mllvm_vs_mmlir.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
! Verify that `-mllvm` options are forwarded to LLVM and `-mmlir` to MLIR.
22

3-
! In practice, '-mmlir --help' is a super-set of '-mllvm --help' and that limits what we can test here. With a better seperation of
3+
! In practice, '-mmlir --help' is a super-set of '-mllvm --help' and that limits what we can test here. With a better separation of
44
! LLVM, MLIR and Flang global options, we should be able to write a stricter test.
55

66
! RUN: %flang_fc1 -mmlir --help | FileCheck %s --check-prefix=MLIR

0 commit comments

Comments
 (0)