[all-commits] [llvm/llvm-project] ba54eb: [clang-tidy] Fix `readability-const-return-type` f...

Liu Ke via All-commits all-commits at lists.llvm.org
Tue Mar 1 04:59:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba54ebeb5eba0f63de8ce2d73a85e9bf508008f6
      https://github.com/llvm/llvm-project/commit/ba54ebeb5eba0f63de8ce2d73a85e9bf508008f6
  Author: Sockke <liuke.gehry at bytedance.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/ConstReturnTypeCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability-const-return-type.cpp

  Log Message:
  -----------
  [clang-tidy] Fix `readability-const-return-type` for pure virtual function.

It cannot match a `pure virtual function`. This patch fixes this behavior.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D116439




More information about the All-commits mailing list