clang-tools 22.0.0git
|
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>
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 |
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.
clang::tidy::hicpp::IgnoredRemoveResultCheck::IgnoredRemoveResultCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 13 of file IgnoredRemoveResultCheck.cpp.
References clang::tidy::bugprone::UnusedReturnValueCheck::UnusedReturnValueCheck().
|
inlineoverride |
Definition at line 24 of file IgnoredRemoveResultCheck.h.
|
override |
Definition at line 26 of file IgnoredRemoveResultCheck.cpp.
References clang::tidy::bugprone::UnusedReturnValueCheck::AllowCastToVoid.