diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-12-24 13:22:26 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-12-24 13:22:26 +0000 |
commit | 1083e52e5a3e3c5d410816ba75077f49e96dfe1c (patch) | |
tree | 895e9c4465abb9234ea063fb9b11d67479ee756a /include/clang/ASTMatchers | |
parent | c311b06da6522cfdf2e28000e70ed4dfeb390b37 (diff) |
[ASTMatchers] Fix doc for hasBitWidth
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/ASTMatchers')
-rw-r--r-- | include/clang/ASTMatchers/ASTMatchers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index f2c649aca0..efa606262b 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -533,7 +533,8 @@ AST_MATCHER(FieldDecl, isBitField) { return Node.isBitField(); } -/// \brief Matches non-static data members that are bit-fields. +/// \brief Matches non-static data members that are bit-fields of the specified +/// bit width. /// /// Given /// \code @@ -543,7 +544,7 @@ AST_MATCHER(FieldDecl, isBitField) { /// int c : 2; /// }; /// \endcode -/// fieldDecl(isBitField()) +/// fieldDecl(hasBitWidth(2)) /// matches 'int a;' and 'int c;' but not 'int b;'. AST_MATCHER_P(FieldDecl, hasBitWidth, unsigned, Width) { return Node.isBitField() && |