Skip to content

Commit

Permalink
Fix typo in the AST Matcher Reference doc Closes: #54
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Dec 8, 2019
1 parent 12f39e0 commit a05d7c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/docs/LibASTMatchersReference.html
Original file line number Diff line number Diff line change
Expand Up @@ -5212,7 +5212,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>

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>

Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/ASTMatchers/ASTMatchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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() &&
Expand Down

0 comments on commit a05d7c2

Please sign in to comment.