Index goes behind the getASTIndex interface.
See llvm-mirror/clang@03ebcc82 and llvm-mirror/clang@f4ca1ac
This commit is contained in:
parent
c85cf9e4ea
commit
f4b6851414
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user