This is a new clang-tidy checker that will warn when function parameters should be const.
See also related discussions in http://reviews.llvm.org/D12359
As usual, I am testing this checker on the debian projects. I have so far triaged 20 warnings from this clang-tidy checker and they were all true positives.
I think this struct can be local to NonConstParameterCheck.