Adds a check to the Fuchsia module to warn if classes are defined or created with virtual inheritance.
See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for reference.
Paths
| Differential D40813
[clang-tidy] Adding Fuchsia checker for virtual inheritance ClosedPublic Authored by juliehockett on Dec 4 2017, 4:24 PM.
Details Summary Adds a check to the Fuchsia module to warn if classes are defined or created with virtual inheritance. See https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md for reference.
Diff Detail Event TimelineEugene.Zelenko added inline comments.
juliehockett marked 5 inline comments as done.
juliehockett marked an inline comment as done. Comment ActionsUpdated matcher to only match direct virtual base classes.
juliehockett added inline comments.
This revision is now accepted and ready to land.Dec 14 2017, 5:11 PM Closed by commit rL320841: [clang-tidy] Adding Fuchsia checker for virtual inheritance (authored by juliehockett). · Explain WhyDec 15 2017, 10:55 AM This revision was automatically updated to reflect the committed changes. juliehockett marked 4 inline comments as done.
Revision Contents
Diff 126804 clang-tidy/fuchsia/CMakeLists.txt
clang-tidy/fuchsia/FuchsiaTidyModule.cppclang-tidy/fuchsia/VirtualInheritanceCheck.h
clang-tidy/fuchsia/VirtualInheritanceCheck.cpp
docs/ReleaseNotes.rst
docs/clang-tidy/checks/fuchsia-virtual-inheritance.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/fuchsia-virtual-inheritance.cpp
|
Formatting looks off here.