|
clang-tools 23.0.0git
|
This check flags all access to members of unions. More...
#include <ProTypeUnionAccessCheck.h>
Public Member Functions | |
| ProTypeUnionAccessCheck (StringRef Name, ClangTidyContext *Context) | |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
This check flags all access to members of unions.
Access to a union as a whole (e.g. passing to a function) is not flagged.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-type-union-access.html
Definition at line 21 of file ProTypeUnionAccessCheck.h.
|
inline |
Definition at line 23 of file ProTypeUnionAccessCheck.h.
|
override |
Definition at line 23 of file ProTypeUnionAccessCheck.cpp.
|
inlineoverride |
Definition at line 25 of file ProTypeUnionAccessCheck.h.
|
override |
Definition at line 16 of file ProTypeUnionAccessCheck.cpp.