MaskRay added a comment.

We need a regression test. See `clang/test/SemaCXX/using-decl*` for some other 
using declaration tests. Find a file which is appropriate and add a reduced 
case there.
Use `ninja check-clang-semacxx` to run `clang/test/SemaCXX` tests. Use 
`$build/bin/llvm-lit -v clang/test/SemaCXX/using-decl-1.cpp` to run one test.

`removeConversion` looks weird: the for loop and `erase` has quadratic time 
complexity and can be easily optimized to linear time.

That said, I find that if I comment out ` 
cast<CXXRecordDecl>(Shadow->getDeclContext())->removeConversion(Shadow);` in 
`Sema::HideUsingShadowDecl`, no test fails... So we have a missing coverage 
issue.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137263/new/

https://reviews.llvm.org/D137263

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to