[PATCH] D52552: [clang-tidy] Flag Classes Inheriting From Structs
Dennis Melamed via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 26 07:47:24 PDT 2018
DennisMelamed created this revision.
DennisMelamed added reviewers: alexfh, aaron.ballman, hokein, JonasToth.
Herald added subscribers: xazax.hun, mgorny.
[clang-tidy] Flag Classes Inheriting From Structs
Added a check which flags cases of a class inheriting from a struct, which can cause unintended scope issues since struct members are public by default.
Patch by Dennis Melamed
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D52552
Files:
clang-tidy/misc/CMakeLists.txt
clang-tidy/misc/ClassInheritFromStructCheck.cpp
clang-tidy/misc/ClassInheritFromStructCheck.h
clang-tidy/misc/MiscTidyModule.cpp
docs/ReleaseNotes.rst
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/misc-class-inherit-from-struct.rst
test/clang-tidy/misc-class-inherit-from-struct.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52552.167131.patch
Type: text/x-patch
Size: 6466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180926/59b7f30f/attachment.bin>
More information about the cfe-commits
mailing list