[all-commits] [llvm/llvm-project] 4fc021: [clang-tidy] New check cppcoreguidelines-prefer-me...
Balogh, Ádám via All-commits
all-commits at lists.llvm.org
Mon Sep 21 05:44:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4fc0214a10140fa77449677e8094ea22d3d17701
https://github.com/llvm/llvm-project/commit/4fc0214a10140fa77449677e8094ea22d3d17701
Author: Adam Balogh <adam.balogh at ericsson.com>
Date: 2020-09-21 (Mon, 21 Sep 2020)
Changed paths:
M clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt
M clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
A clang-tools-extra/clang-tidy/cppcoreguidelines/PreferMemberInitializerCheck.cpp
A clang-tools-extra/clang-tidy/cppcoreguidelines/PreferMemberInitializerCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-prefer-member-initializer.rst
A clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-prefer-member-initializer-modernize-use-default-member-init-assignment.cpp
A clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-prefer-member-initializer-modernize-use-default-member-init.cpp
A clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-prefer-member-initializer.cpp
Log Message:
-----------
[clang-tidy] New check cppcoreguidelines-prefer-member-initializer
Finds member initializations in the constructor body which can be placed
into the initialization list instead. This does not only improves the
readability of the code but also affects positively its performance.
Class-member assignments inside a control statement or following the
first control statement are ignored.
Differential Revision: https://reviews.llvm.org/D71199
More information about the All-commits
mailing list