[all-commits] [llvm/llvm-project] 6cbf15: [clang-tidy] Fix `readability-non-const-parameter`...

Liu Ke via All-commits all-commits at lists.llvm.org
Thu Feb 24 23:06:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6cbf15e9b5ac31887fda9a8fbbf7caa2dcbcf958
      https://github.com/llvm/llvm-project/commit/6cbf15e9b5ac31887fda9a8fbbf7caa2dcbcf958
  Author: Sockke <liuke.gehry at bytedance.com>
  Date:   2022-02-25 (Fri, 25 Feb 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/NonConstParameterCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability-non-const-parameter.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list