[all-commits] [llvm/llvm-project] 24130d: [clang-tidy] Add readability-make-member-function-...

Matthias Gehre via All-commits all-commits at lists.llvm.org
Wed Nov 6 00:29:04 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 24130d661ed42c30f009b695d3c9ce57d2208b5e
      https://github.com/llvm/llvm-project/commit/24130d661ed42c30f009b695d3c9ce57d2208b5e
  Author: Matthias Gehre <gehre.matthias at gmail.com>
  Date:   2019-11-06 (Wed, 06 Nov 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/CMakeLists.txt
    A clang-tools-extra/clang-tidy/readability/MakeMemberFunctionConstCheck.cpp
    A clang-tools-extra/clang-tidy/readability/MakeMemberFunctionConstCheck.h
    M clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst
    A clang-tools-extra/test/clang-tidy/readability-make-member-function-const.cpp

  Log Message:
  -----------
  [clang-tidy] Add readability-make-member-function-const

Summary:
Finds non-static member functions that can be made ``const``
because the functions don't use ``this`` in a non-const way.

The check conservatively tries to preserve logical costness in favor of
physical costness. See readability-make-member-function-const.rst for more
details.

Reviewers: aaron.ballman, gribozavr, hokein, alexfh

Subscribers: mgorny, xazax.hun, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list