mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-22 23:39:24 +00:00
Fixing a typo; NFC.
llvm-svn: 357579
This commit is contained in:
parent
8f6166a72e
commit
f36b2534b2
@ -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").
|
||||
</pre></td></tr>
|
||||
|
||||
|
@ -6187,7 +6187,7 @@ AST_MATCHER_P(CaseStmt, hasCaseConstant, internal::Matcher<Expr>,
|
||||
/// __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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user