|
clang-tools 23.0.0git
|
Gives warnings for tagged unions, where the number of tags is different from the number of data members inside the union. More...
#include <TaggedUnionMemberCountCheck.h>
Public Member Functions | |
| TaggedUnionMemberCountCheck (StringRef Name, ClangTidyContext *Context) | |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Gives warnings for tagged unions, where the number of tags is different from the number of data members inside the union.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/tagged-union-member-count.html
Definition at line 21 of file TaggedUnionMemberCountCheck.h.
| clang::tidy::bugprone::TaggedUnionMemberCountCheck::TaggedUnionMemberCountCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 66 of file TaggedUnionMemberCountCheck.cpp.
References clang::tidy::bugprone::CountingEnumPrefixesOptionDefaultValue, clang::tidy::bugprone::CountingEnumPrefixesOptionName, clang::tidy::bugprone::CountingEnumSuffixesOptionDefaultValue, clang::tidy::bugprone::CountingEnumSuffixesOptionName, clang::tidy::bugprone::EnableCountingEnumHeuristicOptionDefaultValue, clang::tidy::bugprone::EnableCountingEnumHeuristicOptionName, clang::tidy::bugprone::StrictModeOptionDefaultValue, and clang::tidy::bugprone::StrictModeOptionName.
|
override |
Definition at line 155 of file TaggedUnionMemberCountCheck.cpp.
References clang::tidy::bugprone::RootMatchBindName, clang::tidy::bugprone::TagMatchBindName, and clang::tidy::bugprone::UnionMatchBindName.
|
override |
Definition at line 103 of file TaggedUnionMemberCountCheck.cpp.
References clang::tidy::bugprone::RootMatchBindName, clang::tidy::bugprone::TagMatchBindName, and clang::tidy::bugprone::UnionMatchBindName.
|
override |
Definition at line 92 of file TaggedUnionMemberCountCheck.cpp.
References clang::tidy::bugprone::CountingEnumPrefixesOptionName, clang::tidy::bugprone::CountingEnumSuffixesOptionName, clang::tidy::bugprone::EnableCountingEnumHeuristicOptionName, clang::tidy::utils::options::serializeStringList(), and clang::tidy::bugprone::StrictModeOptionName.