diff options
author | Congcong Cai <congcongcai0907@163.com> | 2024-09-18 21:51:14 +0800 |
---|---|---|
committer | Congcong Cai <congcongcai0907@163.com> | 2024-09-18 21:51:14 +0800 |
commit | 11b95deab9a00d53e94a089b5d4bf3c05e5d5370 (patch) | |
tree | 8da0ba29ff193af20465608450a72833c0a4f514 /clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp | |
parent | ba8c96593c78cda44523abf2abcd7faeef0471af (diff) | |
download | llvm-11b95deab9a00d53e94a089b5d4bf3c05e5d5370.zip llvm-11b95deab9a00d53e94a089b5d4bf3c05e5d5370.tar.gz llvm-11b95deab9a00d53e94a089b5d4bf3c05e5d5370.tar.bz2 |
[clang-tidy][NFC] fix typo in clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp b/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp index a1786ba..1c6a161 100644 --- a/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp @@ -262,7 +262,7 @@ StatementMatcher makeIteratorLoopMatcher(bool IsReverse) { /// EndVarName: 'j' (as a VarDecl) /// In the second example only: /// EndCallName: 'container.size()' (as a CXXMemberCallExpr) or -/// 'size(contaner)' (as a CallExpr) +/// 'size(container)' (as a CallExpr) /// /// Client code will need to make sure that: /// - The containers on which 'size()' is called is the container indexed. @@ -491,7 +491,7 @@ static bool isDirectMemberExpr(const Expr *E) { } /// Given an expression that represents an usage of an element from the -/// containter that we are iterating over, returns false when it can be +/// container that we are iterating over, returns false when it can be /// guaranteed this element cannot be modified as a result of this usage. static bool canBeModified(ASTContext *Context, const Expr *E) { if (E->getType().isConstQualified()) @@ -922,7 +922,7 @@ bool LoopConvertCheck::isConvertible(ASTContext *Context, const ast_matchers::BoundNodes &Nodes, const ForStmt *Loop, LoopFixerKind FixerKind) { - // In self contained diagnosics mode we don't want dependancies on other + // In self contained diagnostic mode we don't want dependencies on other // loops, otherwise, If we already modified the range of this for loop, don't // do any further updates on this iteration. if (areDiagsSelfContained()) |