mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
Fix typo in the AST Matcher Reference doc Closes: #54
This commit is contained in:
parent
12f39e0fed
commit
a05d7c278e
@ -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>
|
||||
|
||||
|
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user