[clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an...
authorSockke <liuke.gehry@bytedance.com>
Fri, 25 Feb 2022 06:44:26 +0000 (14:44 +0800)
committerSockke <liuke.gehry@bytedance.com>
Fri, 25 Feb 2022 06:53:11 +0000 (14:53 +0800)
commit6cbf15e9b5ac31887fda9a8fbbf7caa2dcbcf958
tree2398e401aa3cb3ee372b0fe2d5ac7257c371fdc8
parentb20e80aa590de1f006c2893ee53c9a89714ff276
[clang-tidy] Fix `readability-non-const-parameter` for parameter referenced by an lvalue

The checker missed a check for a case when the parameter is referenced by an lvalue and this could cause build breakages.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D117090
clang-tools-extra/clang-tidy/readability/NonConstParameterCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst
clang-tools-extra/test/clang-tidy/checkers/readability-non-const-parameter.cpp