-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang-tidy] Add alias cppcoreguidelines-use-default-member-init
And deprecate identical functionality from cppcoreguidelines-prefer-member-initializer, which had too many responsibilities and a tight coupling to the modernize-use-default-member-init check. Fixes #62164. Differential Revision: https://reviews.llvm.org/D148460
- Loading branch information
1 parent
e779d54
commit b507bda
Showing
5 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...ools-extra/docs/clang-tidy/checks/cppcoreguidelines/use-default-member-init.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. title:: clang-tidy - cppcoreguidelines-use-default-member-init | ||
.. meta:: | ||
:http-equiv=refresh: 5;URL=../modernize/use-default-member-init.html | ||
|
||
cppcoreguidelines-use-default-member-init | ||
========================================= | ||
|
||
This check implements `C.48 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c48-prefer-in-class-initializers-to-member-initializers-in-constructors-for-constant-initializers>`_ from the CppCoreGuidelines. | ||
|
||
The cppcoreguidelines-use-default-member-init check is an alias, please see | ||
`modernize-use-default-member-init <../modernize/use-default-member-init.html>`_ | ||
for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters