[PATCH] D146904: [clang-tidy] Fix extern fixes in readability-redundant-declaration
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 26 06:47:43 PDT 2023
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/readability/RedundantDeclarationCheck.cpp:84
+ SourceLocation BeginLoc;
+ if (const LinkageSpecDecl *Extern =
+ Result.Nodes.getNodeAs<LinkageSpecDecl>("extern");
----------------
`auto` could be used because type is explicitly stated in same statement.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146904/new/
https://reviews.llvm.org/D146904
More information about the cfe-commits
mailing list