clang-tools 22.0.0git
clang::tidy::hicpp::MultiwayPathsCoveredCheck Class Reference

Find occasions where not all codepaths are explicitly covered in code. More...

#include <MultiwayPathsCoveredCheck.h>

Inheritance diagram for clang::tidy::hicpp::MultiwayPathsCoveredCheck:
[legend]

Public Member Functions

 MultiwayPathsCoveredCheck (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

Find occasions where not all codepaths are explicitly covered in code.

This includes 'switch' without a 'default'-branch and 'if'-'else if'-chains without a final 'else'-branch.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/hicpp/multiway-paths-covered.html

Definition at line 22 of file MultiwayPathsCoveredCheck.h.

Constructor & Destructor Documentation

◆ MultiwayPathsCoveredCheck()

clang::tidy::hicpp::MultiwayPathsCoveredCheck::MultiwayPathsCoveredCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 24 of file MultiwayPathsCoveredCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::hicpp::MultiwayPathsCoveredCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ registerMatchers()

void clang::tidy::hicpp::MultiwayPathsCoveredCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 23 of file MultiwayPathsCoveredCheck.cpp.

◆ storeOptions()

void clang::tidy::hicpp::MultiwayPathsCoveredCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 18 of file MultiwayPathsCoveredCheck.cpp.


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