Skip to content

Commit b03a72e

Browse files
committed
[OpenMP] A few CGStmtOpenMP.cpp spelling fixes
Also some in clang/AST/Expr.h.
1 parent bcce7cf commit b03a72e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

clang/include/clang/AST/Expr.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class Expr : public ValueStmt {
384384
bool isRValue() const { return Kind >= CL_XValue; }
385385
bool isModifiable() const { return getModifiable() == CM_Modifiable; }
386386

387-
/// Create a simple, modifiably lvalue
387+
/// Create a simple, modifiable lvalue
388388
static Classification makeSimpleLValue() {
389389
return Classification(CL_LValue, CM_Modifiable);
390390
}
@@ -1292,7 +1292,7 @@ class DeclRefExpr final
12921292

12931293
DeclRefExpr(const ASTContext &Ctx, NestedNameSpecifierLoc QualifierLoc,
12941294
SourceLocation TemplateKWLoc, ValueDecl *D,
1295-
bool RefersToEnlosingVariableOrCapture,
1295+
bool RefersToEnclosingVariableOrCapture,
12961296
const DeclarationNameInfo &NameInfo, NamedDecl *FoundD,
12971297
const TemplateArgumentListInfo *TemplateArgs, QualType T,
12981298
ExprValueKind VK, NonOdrUseReason NOUR);
@@ -1658,14 +1658,14 @@ class FloatingLiteral : public Expr, private APFloatStorage {
16581658
}
16591659

16601660
/// Get a raw enumeration value representing the floating-point semantics of
1661-
/// this literal (32-bit IEEE, x87, ...), suitable for serialisation.
1661+
/// this literal (32-bit IEEE, x87, ...), suitable for serialization.
16621662
llvm::APFloatBase::Semantics getRawSemantics() const {
16631663
return static_cast<llvm::APFloatBase::Semantics>(
16641664
FloatingLiteralBits.Semantics);
16651665
}
16661666

16671667
/// Set the raw enumeration value representing the floating-point semantics of
1668-
/// this literal (32-bit IEEE, x87, ...), suitable for serialisation.
1668+
/// this literal (32-bit IEEE, x87, ...), suitable for serialization.
16691669
void setRawSemantics(llvm::APFloatBase::Semantics Sem) {
16701670
FloatingLiteralBits.Semantics = Sem;
16711671
}
@@ -2130,7 +2130,7 @@ class SYCLUniqueStableNameExpr final : public Expr {
21302130
static std::string ComputeName(ASTContext &Context, QualType Ty);
21312131
};
21322132

2133-
/// ParenExpr - This represents a parethesized expression, e.g. "(1)". This
2133+
/// ParenExpr - This represents a parenthesized expression, e.g. "(1)". This
21342134
/// AST node is only formed if full location information is requested.
21352135
class ParenExpr : public Expr {
21362136
SourceLocation L, R;
@@ -2246,7 +2246,7 @@ class UnaryOperator final
22462246
bool canOverflow() const { return UnaryOperatorBits.CanOverflow; }
22472247
void setCanOverflow(bool C) { UnaryOperatorBits.CanOverflow = C; }
22482248

2249-
/// Get the FP contractability status of this operator. Only meaningful for
2249+
/// Get the FP contractibility status of this operator. Only meaningful for
22502250
/// operations on floating point types.
22512251
bool isFPContractableWithinStatement(const LangOptions &LO) const {
22522252
return getFPFeaturesInEffect(LO).allowFPContractWithinStatement();
@@ -4054,7 +4054,7 @@ class BinaryOperator : public Expr {
40544054
return FPOptionsOverride();
40554055
}
40564056

4057-
/// Get the FP contractability status of this operator. Only meaningful for
4057+
/// Get the FP contractibility status of this operator. Only meaningful for
40584058
/// operations on floating point types.
40594059
bool isFPContractableWithinStatement(const LangOptions &LO) const {
40604060
return getFPFeaturesInEffect(LO).allowFPContractWithinStatement();
@@ -4295,7 +4295,7 @@ class BinaryConditionalOperator : public AbstractConditionalOperator {
42954295
}
42964296

42974297
/// getFalseExpr - Return the subexpression which will be
4298-
/// evaluated if the condnition evaluates to false; this is
4298+
/// evaluated if the condition evaluates to false; this is
42994299
/// defined in terms of the opaque value.
43004300
Expr *getFalseExpr() const {
43014301
return cast<Expr>(SubExprs[RHS]);
@@ -6003,7 +6003,7 @@ class GenericSelectionExpr final
60036003
// if *It1 and *It2 are bound to the same objects.
60046004
// An alternative design approach was discussed during review;
60056005
// store an Association object inside the iterator, and return a reference
6006-
// to it when dereferenced. This idea was discarded beacuse of nasty
6006+
// to it when dereferenced. This idea was discarded because of nasty
60076007
// lifetime issues:
60086008
// AssociationIterator It = ...;
60096009
// const Association &Assoc = *It++; // Oops, Assoc is dangling.

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class OMPLoopScope : public CodeGenFunction::RunCleanupsScope {
193193
if (PreInits) {
194194
// CompoundStmts and DeclStmts are used as lists of PreInit statements and
195195
// declarations. Since declarations must be visible in the the following
196-
// that they initialize, unpack the ComboundStmt they are nested in.
196+
// that they initialize, unpack the CompoundStmt they are nested in.
197197
SmallVector<const Stmt *> PreInitStmts;
198198
if (auto *PreInitCompound = dyn_cast<CompoundStmt>(PreInits))
199199
llvm::append_range(PreInitStmts, PreInitCompound->body());
@@ -1411,7 +1411,7 @@ void CodeGenFunction::EmitOMPReductionClauseInit(
14111411
case OMPD_end_declare_variant:
14121412
case OMPD_unknown:
14131413
default:
1414-
llvm_unreachable("Enexpected directive with task reductions.");
1414+
llvm_unreachable("Unexpected directive with task reductions.");
14151415
}
14161416

14171417
const auto *VD = cast<VarDecl>(cast<DeclRefExpr>(TaskRedRef)->getDecl());
@@ -1766,7 +1766,7 @@ void CodeGenFunction::EmitOMPParallelDirective(const OMPParallelDirective &S) {
17661766

17671767
using InsertPointTy = llvm::OpenMPIRBuilder::InsertPointTy;
17681768

1769-
// The cleanup callback that finalizes all variabels at the given location,
1769+
// The cleanup callback that finalizes all variables at the given location,
17701770
// thus calls destructors etc.
17711771
auto FiniCB = [this](InsertPointTy IP) {
17721772
OMPBuilderCBHelpers::FinalizeOMPRegion(*this, IP);
@@ -6506,7 +6506,7 @@ static void emitOMPAtomicCompareExpr(
65066506
}
65076507

65086508
if (FailAO == llvm::AtomicOrdering::NotAtomic) {
6509-
// fail clause was not mentionend on the
6509+
// fail clause was not mentioned on the
65106510
// "#pragma omp atomic compare" construct.
65116511
CGF.Builder.restoreIP(OMPBuilder.createAtomicCompare(
65126512
CGF.Builder, XOpVal, VOpVal, ROpVal, EVal, DVal, AO, Op, IsXBinopExpr,
@@ -7920,7 +7920,7 @@ void CodeGenFunction::EmitOMPGenericLoopDirective(
79207920

79217921
void CodeGenFunction::EmitOMPParallelGenericLoopDirective(
79227922
const OMPLoopDirective &S) {
7923-
// Emit combined directive as if its consituent constructs are 'parallel'
7923+
// Emit combined directive as if its constituent constructs are 'parallel'
79247924
// and 'for'.
79257925
auto &&CodeGen = [&S](CodeGenFunction &CGF, PrePostActionTy &Action) {
79267926
Action.Enter(CGF);

0 commit comments

Comments
 (0)