Skip to content

Commit 11b95de

Browse files
committed
[clang-tidy][NFC] fix typo in clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
1 parent ba8c965 commit 11b95de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ StatementMatcher makeIteratorLoopMatcher(bool IsReverse) {
262262
/// EndVarName: 'j' (as a VarDecl)
263263
/// In the second example only:
264264
/// EndCallName: 'container.size()' (as a CXXMemberCallExpr) or
265-
/// 'size(contaner)' (as a CallExpr)
265+
/// 'size(container)' (as a CallExpr)
266266
///
267267
/// Client code will need to make sure that:
268268
/// - The containers on which 'size()' is called is the container indexed.
@@ -491,7 +491,7 @@ static bool isDirectMemberExpr(const Expr *E) {
491491
}
492492

493493
/// Given an expression that represents an usage of an element from the
494-
/// containter that we are iterating over, returns false when it can be
494+
/// container that we are iterating over, returns false when it can be
495495
/// guaranteed this element cannot be modified as a result of this usage.
496496
static bool canBeModified(ASTContext *Context, const Expr *E) {
497497
if (E->getType().isConstQualified())
@@ -922,7 +922,7 @@ bool LoopConvertCheck::isConvertible(ASTContext *Context,
922922
const ast_matchers::BoundNodes &Nodes,
923923
const ForStmt *Loop,
924924
LoopFixerKind FixerKind) {
925-
// In self contained diagnosics mode we don't want dependancies on other
925+
// In self contained diagnostic mode we don't want dependencies on other
926926
// loops, otherwise, If we already modified the range of this for loop, don't
927927
// do any further updates on this iteration.
928928
if (areDiagsSelfContained())

0 commit comments

Comments
 (0)