commit | 5d7648449392dccee2deb7920c2e5facbe1a63f5 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <doug.gregor@gmail.com> | Fri Jan 09 17:18:27 2009 +0000 |
committer | Douglas Gregor <doug.gregor@gmail.com> | Fri Jan 09 17:18:27 2009 +0000 |
tree | 6f6aff3c21729eda614a2e29a95798a356f81e9f | |
parent | bf5eb6c5a1b585fa8df37f7dde653b18401d0cb1 [diff] |
Provide a new kind of iterator, the specific_decl_iterator, that filters the decls seen by decl_iterator with two criteria: the dynamic type of the declaration and a run-time predicate described by a member function. This simplifies EnumDecl, RecordDecl, and ObjCContainerDecl considerably. It has no measurable performance impact. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61994 91177308-0d34-0410-b5e6-96231b3b80d8