njames93 added inline comments.

================
Comment at: clang-tools-extra/clang-tidy/readability/QualifiedAutoCheck.cpp:99
+  QualType Pointee =
+      dyn_cast<AutoType>(QType->getPointeeType().getTypePtr())->desugar();
+  assert(!Pointee.isNull() && "can't have a null Pointee");
----------------
aaron.ballman wrote:
> `dyn_cast<>` can return null, but you don't check for null here. Should this 
> be using `cast<>` or should  it be checking for null?
It should be using cast, we already know that its an ``AutoType`` because the 
matcher matched on autoType


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72217



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

Reply via email to