[PATCH] D28034: [ASTMatchers] Add hasInClassInitializer traversal matcher for FieldDecl.
Malcolm Parsons via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 22 02:56:17 PST 2016
malcolm.parsons added inline comments.
================
Comment at: docs/LibASTMatchersReference.html:2442
};
-fieldDecl(isBitField())
+fieldDecl(hasBitWidth(2))
matches 'int a;' and 'int c;' but not 'int b;'.
----------------
Prazek wrote:
> Fix not connected to patch?
Yes. The documentation is generated from the comments.
================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:547
/// \endcode
-/// fieldDecl(isBitField())
+/// fieldDecl(hasBitWidth(2))
/// matches 'int a;' and 'int c;' but not 'int b;'.
----------------
Prazek wrote:
> Samw
Yes.
https://reviews.llvm.org/D28034
More information about the cfe-commits
mailing list