Adds an iterator that allows to loop over C++ class/union/struct access specifier declarations.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Do you really have to add an iterator for this particular thing ?
Why not just use specific_decl_iterator<AccessSpecDecl> in your clang-tidy checker ?
Comment Actions
I don't need to - if this is the preferred way to accomplish this, I'm more than happy to modify the revisions. I just saw other range methods that are only used once (e.g. CXXRecordDecl::friends()).
Comment Actions
I think this has utility because it exposes a range accessor, but it's up to you which way you'd like to go. I left some comments in case you decide to pick this patch back up again.
include/clang/AST/DeclCXX.h | ||
---|---|---|
855 | I'd prefer access_spec to accessspec (here and elsewhere). |
I'd prefer access_spec to accessspec (here and elsewhere).