diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index d9e867c9519d..97c75277c275 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -5212,7 +5212,7 @@ Example matches A() in the last line Given: MyClass *p1 = new MyClass[10]; -cxxNewExpr(hasArraySize(intgerLiteral(equals(10)))) +cxxNewExpr(hasArraySize(integerLiteral(equals(10)))) matches the expression 'new MyClass[10]'. diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 608454631556..9c0aae2886fc 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -6566,7 +6566,7 @@ AST_MATCHER(CXXNewExpr, isArray) { /// \code /// MyClass *p1 = new MyClass[10]; /// \endcode -/// cxxNewExpr(hasArraySize(intgerLiteral(equals(10)))) +/// cxxNewExpr(hasArraySize(integerLiteral(equals(10)))) /// matches the expression 'new MyClass[10]'. AST_MATCHER_P(CXXNewExpr, hasArraySize, internal::Matcher, InnerMatcher) { return Node.isArray() && *Node.getArraySize() &&