Index goes behind the getASTIndex interface.

See llvm-mirror/clang@03ebcc82 and llvm-mirror/clang@f4ca1ac
This commit is contained in:
Vassil Vassilev 2020-03-17 17:15:51 +02:00 committed by jenkins
parent c85cf9e4ea
commit f4b6851414

View File

@ -198,9 +198,8 @@ class PointerCheckInjector : public RecursiveASTVisitor<PointerCheckInjector> {
E = FDecl->specific_attr_end<NonNullAttr>(); I != E; ++I) { E = FDecl->specific_attr_end<NonNullAttr>(); I != E; ++I) {
NonNullAttr *NonNull = *I; NonNullAttr *NonNull = *I;
for (NonNullAttr::args_iterator i = NonNull->args_begin(), for (const auto &Idx : NonNull->args()) {
e = NonNull->args_end(); i != e; ++i) { ArgIndexs.set(Idx.getASTIndex());
ArgIndexs.set(*i);
} }
} }