balazske added inline comments.
================ Comment at: lib/AST/DeclBase.cpp:1469 assert(Pos != Map->end() && "no lookup entry for decl"); - if (Pos->second.getAsVector() || Pos->second.getAsDecl() == ND) + // Remove the decl only if it is contained. + if ((Pos->second.getAsVector() && Pos->second.containsInVector(ND)) || ---------------- martong wrote: > Szelethus wrote: > > Contained in? > Indeed, `containedInVector` sounds better, so I renamed. For me, `containsInVector` is the better name, or `hasInVector` ("contains" is already used at other places but not "contained" and it sounds like it is not contained any more). Repository: rC Clang https://reviews.llvm.org/D53655 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits