diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2019-12-08 16:14:31 +0100 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2019-12-08 16:14:31 +0100 |
commit | a05d7c278ee2a29aec73dbe5316e5cf2a2d190f8 (patch) | |
tree | fa2b1c69ae76e73d5523d8978c9404649dc2f2d1 | |
parent | 12f39e0fede92ca04c811660530e750585124ed2 (diff) | |
download | bcm5719-llvm-a05d7c278ee2a29aec73dbe5316e5cf2a2d190f8.tar.gz bcm5719-llvm-a05d7c278ee2a29aec73dbe5316e5cf2a2d190f8.zip |
Fix typo in the AST Matcher Reference doc Closes: #54
-rw-r--r-- | clang/docs/LibASTMatchersReference.html | 2 | ||||
-rw-r--r-- | clang/include/clang/ASTMatchers/ASTMatchers.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index d9e867c9519..97c75277c27 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -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> diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 60845463155..9c0aae2886f 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -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() && |