[all-commits] [llvm/llvm-project] 1b897f: [clang-tidy] Fix misc-unused-parameters on params ...
Maksim Ivanov via All-commits
all-commits at lists.llvm.org
Thu Jan 9 11:40:53 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1b897f737df2097f8fee1b203676ea7f01dff06d
https://github.com/llvm/llvm-project/commit/1b897f737df2097f8fee1b203676ea7f01dff06d
Author: Maksim Ivanov <emaxx at google.com>
Date: 2025-01-09 (Thu, 09 Jan 2025)
Changed paths:
M clang-tools-extra/clang-tidy/misc/UnusedParametersCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/misc/unused-parameters.cpp
Log Message:
-----------
[clang-tidy] Fix misc-unused-parameters on params with attrs (#122286)
Don't suggest to comment-out the parameter name if the parameter has an
attribute that's spelled after the parameter name.
This prevents the parameter's attributes from being wrongly applied to
the parameter's type.
This fixes #122191.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list