From 8693138716e2211a3ce8c5e6be4f85bf7eed95f6 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 3 Apr 2019 13:37:56 +0000 Subject: [PATCH] Fixing a typo; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357579 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LibASTMatchersReference.html | 2 +- include/clang/ASTMatchers/ASTMatchers.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/LibASTMatchersReference.html b/docs/LibASTMatchersReference.html index 10b9ebf19b..3f8e4178d6 100644 --- a/docs/LibASTMatchersReference.html +++ b/docs/LibASTMatchersReference.html @@ -2773,7 +2773,7 @@ Decl has pointer identity in the AST. Given __attribute__((device)) void f() { ... } decl(hasAttr(clang::attr::CUDADevice)) matches the function declaration of -f. If the matcher is use from clang-query, attr::Kind parameter should be +f. If the matcher is used from clang-query, attr::Kind parameter should be passed as a quoted string. e.g., hasAttr("attr::CUDADevice"). diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index 1ad016623e..c5ec9f48a0 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -6187,7 +6187,7 @@ AST_MATCHER_P(CaseStmt, hasCaseConstant, internal::Matcher, /// __attribute__((device)) void f() { ... } /// \endcode /// decl(hasAttr(clang::attr::CUDADevice)) matches the function declaration of -/// f. If the matcher is use from clang-query, attr::Kind parameter should be +/// f. If the matcher is used from clang-query, attr::Kind parameter should be /// passed as a quoted string. e.g., hasAttr("attr::CUDADevice"). AST_MATCHER_P(Decl, hasAttr, attr::Kind, AttrKind) { for (const auto *Attr : Node.attrs()) { -- 2.40.0