Closed
Description
It says intgerLiteral instead of integerLiteral:
https://clang.llvm.org/docs/LibASTMatchersReference.html
Matches array new expressions with a given array size.
Given:
MyClass *p1 = new MyClass[10];
cxxNewExpr(hasArraySize(intgerLiteral(equals(10))))
matches the expression 'new MyClass[10]'.
include/clang/ASTMatchers/ASTMatchers.h
/// Matches array new expressions with a given array size.
///
/// Given:
/// \code
/// MyClass *p1 = new MyClass[10];
/// \endcode
/// cxxNewExpr(hasArraySize(intgerLiteral(equals(10))))
/// matches the expression 'new MyClass[10]'.
- cxxNewExpr(hasArraySize(intgerLiteral(equals(10))))
+ cxxNewExpr(hasArraySize(integerLiteral(equals(10))))
Metadata
Metadata
Assignees
Labels
No labels