Skip to content

Minor typo in help doc? #54

Closed
Closed
@bjaraujo

Description

@bjaraujo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions