HomePhabricator

[clang-tidy] Add readability-make-member-function-const

Authored by mgehre on Sep 22 2019, 2:19 PM.

Description

[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

Details

Committed
mgehreNov 6 2019, 12:27 AM
Differential Revision
D68074: [clang-tidy] Add readability-make-member-function-const
Parents
rG092452d402d7: YAML parser robustness improvements
Branches
Unknown
Tags
Unknown