hintonda added a comment. In D59802#1443340 <https://reviews.llvm.org/D59802#1443340>, @aaron.ballman wrote:
> Should this check also try to find this pattern: > > if (dyn_cast<Frobble>(Bobble)) > ... > > > in order to recommend the proper replacement: > > if (isa<Frobble>(Bobble)) > ... > > > I ask because the name `llvm-avoid-cast-in-conditional` sounds like it would > also cover this situation and I run into it during code reviews with some > frequency (more often than I run into `cast<>` being used in a conditional). Yes, I can add that, and provide a fix-it too. Thanks... Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59802/new/ https://reviews.llvm.org/D59802 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits