This patch seems trivial, but I've never touched clang-tidy before, so I'm just making sure I didn't miss something obvious. :)
Clang has a parameter attribute called pass_object_size, which requires that its parameter's type be const. This restriction only applies at function definitions. e.g.
void foo(void *p __attribute__((pass_object_size(0))); // this is a decl; const isn't required. void foo(void *const p __attribute__((pass_object_size(0))) {} // const is required; this is a def.
readability-avoid-const-params-in-decls will complain if you put const in the decl. Given that clang gives you an error unless you use const in the def, I don't think it's clearly a bad thing to use const in the decl. This patch makes said checker not complain about const params with the pass_object_size attribute.