From a05d7c278ee2a29aec73dbe5316e5cf2a2d190f8 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 8 Dec 2019 16:14:31 +0100 Subject: [PATCH] Fix typo in the AST Matcher Reference doc Closes: #54 --- clang/docs/LibASTMatchersReference.html | 2 +- clang/include/clang/ASTMatchers/ASTMatchers.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() &&