This addresses https://bugs.llvm.org/show_bug.cgi?id=37467.
Details
Details
- Reviewers
klimek ilya-biryukov lebedev.ri aaron.ballman - Commits
- rGf7ad8bfbad4a: [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode
rCTE335863: [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode
rL335863: [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 18194 Build 18194: arc lint + arc unit
Event Timeline
Comment Actions
I would like to see some test in non-strict mode that shows that
it is the child existence is what matters, e.g. with empty lines,
and maybe another one with all the content commented out /**/.
Otherwise this looks good.
clang-tidy/misc/UnusedParametersCheck.cpp | ||
---|---|---|
180 | So this checks that there are children. |
clang-tidy/misc/UnusedParametersCheck.cpp | ||
---|---|---|
180 | Yes, and llvm::distance (recently renamed to llvm::size) doesn't work here any more, so the code now checks for iterator equality, which should be easier to read. |
So this checks that there are children.