[clang-tools-extra] [clang-tidy][NFC] Apply llvm-redundant-casting check (PR #214024)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 4 18:50:13 PDT 2026


================
@@ -351,7 +351,7 @@ class RenamerClangTidyVisitor
     if (!Decl)
       return true;
 
-    if (const auto *ClassDecl = dyn_cast<TemplateDecl>(Decl))
+    if (const auto *ClassDecl = Decl)
----------------
zwuis wrote:

`Decl` is always non-null here.

https://github.com/llvm/llvm-project/pull/214024


More information about the cfe-commits mailing list