]> granicus.if.org Git - clang/commit
[ASTMatchers] Add hasInClassInitializer traversal matcher for FieldDecl.
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Sat, 24 Dec 2016 13:35:14 +0000 (13:35 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Sat, 24 Dec 2016 13:35:14 +0000 (13:35 +0000)
commit8614176ac530460aaaa4e9f593fa173f12cb760d
tree321a9a16ef9c059103551ce1272466dca16a0c95
parent1083e52e5a3e3c5d410816ba75077f49e96dfe1c
[ASTMatchers] Add hasInClassInitializer traversal matcher for FieldDecl.

Summary:
I needed to know whether a FieldDecl had an in-class
initializer for D26453. I used a narrowing matcher there, but a
traversal matcher might be generally useful.

Reviewers: sbenza, bkramer, klimek, aaron.ballman

Subscribers: aaron.ballman, Prazek, cfe-commits

Differential Revision: https://reviews.llvm.org/D28034

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290492 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
lib/ASTMatchers/Dynamic/Registry.cpp
unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp