[all-commits] [llvm/llvm-project] d8c948: [clang-tidy] Fix extern fixes in readability-redun...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Sat Apr 8 10:19:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d8c948cfe4eff814a2be71e74cbd835e9be28865
https://github.com/llvm/llvm-project/commit/d8c948cfe4eff814a2be71e74cbd835e9be28865
Author: Piotr Zegar <me at piotrzegar.pl>
Date: 2023-04-08 (Sat, 08 Apr 2023)
Changed paths:
M clang-tools-extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-declaration.cpp
Log Message:
-----------
[clang-tidy] Fix extern fixes in readability-redundant-declaration
Currently check does not look into LinkageSpecDecl
when removing redundant variable re-declarations.
This were leaving code in non-compiling state.
Fix patch fixes this and adds removal also of 'extern C'.
Fixes: https://github.com/llvm/llvm-project/issues/42068
Reviewed By: carlosgalvezp
Differential Revision: https://reviews.llvm.org/D146904
More information about the All-commits
mailing list