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

Ensure that the result of std::remove, std::remove_if and std::unique are not ignored according to rule 17.5.1. More...

#include <IgnoredRemoveResultCheck.h>

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

Public Member Functions

 IgnoredRemoveResultCheck (StringRef Name, ClangTidyContext *Context)
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
Public Member Functions inherited from clang::tidy::bugprone::UnusedReturnValueCheck
 UnusedReturnValueCheck (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
std::optional< TraversalKind > getCheckTraversalKind () const override

Additional Inherited Members

Protected Member Functions inherited from clang::tidy::bugprone::UnusedReturnValueCheck
 UnusedReturnValueCheck (StringRef Name, ClangTidyContext *Context, std::vector< StringRef > CheckedFunctions)
 UnusedReturnValueCheck (StringRef Name, ClangTidyContext *Context, std::vector< StringRef > CheckedFunctions, std::vector< StringRef > CheckedReturnTypes, bool AllowCastToVoid)
Protected Attributes inherited from clang::tidy::bugprone::UnusedReturnValueCheck
bool AllowCastToVoid

Detailed Description

Ensure that the result of std::remove, std::remove_if and std::unique are not ignored according to rule 17.5.1.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/hicpp/ignored-remove-result.html

Definition at line 21 of file IgnoredRemoveResultCheck.h.

Constructor & Destructor Documentation

◆ IgnoredRemoveResultCheck()

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

Member Function Documentation

◆ isLanguageVersionSupported()

bool clang::tidy::hicpp::IgnoredRemoveResultCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 24 of file IgnoredRemoveResultCheck.h.

◆ storeOptions()

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

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