clang-tools 23.0.0git
clang::tidy::bugprone::TaggedUnionMemberCountCheck Class Reference

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>

Inheritance diagram for clang::tidy::bugprone::TaggedUnionMemberCountCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ TaggedUnionMemberCountCheck()

Member Function Documentation

◆ check()

void clang::tidy::bugprone::TaggedUnionMemberCountCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ registerMatchers()

void clang::tidy::bugprone::TaggedUnionMemberCountCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

◆ storeOptions()


The documentation for this class was generated from the following files: