forked from OSchip/llvm-project
b785407c28
Summary: This check flags all access to members of unions. Passing unions as a whole is not flagged. Reading from a union member assumes that member was the last one written, and writing to a union member assumes another member with a nontrivial destructor had its destructor called. This is fragile because it cannot generally be enforced to be safe in the language and so relies on programmer discipline to get it right. This rule is part of the "Type safety" profile of the C++ Core Guidelines, see https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-type7-avoid-accessing-members-of-raw-unions-prefer-variant-instead Reviewers: alexfh, sbenza, bkramer, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13784 llvm-svn: 250537 |
||
---|---|---|
.. | ||
clang-tidy | ||
AddOverrideTransform.rst | ||
Doxyfile | ||
LoopConvertTransform.rst | ||
Makefile | ||
MigratorUsage.rst | ||
ModernizerUsage.rst | ||
ModularizeUsage.rst | ||
PassByValueTransform.rst | ||
README.txt | ||
ReplaceAutoPtrTransform.rst | ||
UseAutoTransform.rst | ||
UseNullptrTransform.rst | ||
clang-modernize.rst | ||
clang-tidy.rst | ||
conf.py | ||
cpp11-migrate.rst | ||
index.rst | ||
make.bat | ||
modularize.rst | ||
pp-trace.rst |
README.txt
------------------------------------------------------------- Documentation for the tools of clang-tools-extra repo project ------------------------------------------------------------- Sphinx and doxygen documentation is generated by executing make. Sphinx html files can be generated separately using make html. Doxygen html files can also be generated using make doxygen. The generated documentation will be placed in _build/html.