Fix typo in the AST Matcher Reference doc Closes: #54

This commit is contained in:
Sylvestre Ledru 2019-12-08 16:14:31 +01:00
parent 12f39e0fed
commit a05d7c278e
2 changed files with 2 additions and 2 deletions

View File

@ -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]'.
</pre></td></tr>

View File

@ -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<Expr>, InnerMatcher) {
return Node.isArray() && *Node.getArraySize() &&