clang-tools 22.0.0git
|
Checks for common use cases for gsl::owner and enforces the unique owner nature of it whenever possible. More...
#include <OwningMemoryCheck.h>
Public Member Functions | |
OwningMemoryCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
Make configuration of checker discoverable. | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
Match common cases, where the owner semantic is relevant, like function calls, delete expressions and others. | |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Checks for common use cases for gsl::owner and enforces the unique owner nature of it whenever possible.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/owning-memory.html
Definition at line 21 of file OwningMemoryCheck.h.
|
inline |
Definition at line 23 of file OwningMemoryCheck.h.
|
override |
Definition at line 216 of file OwningMemoryCheck.cpp.
|
inlineoverride |
Definition at line 40 of file OwningMemoryCheck.h.
|
inlineoverride |
Definition at line 31 of file OwningMemoryCheck.h.
|
override |
Match common cases, where the owner semantic is relevant, like function calls, delete expressions and others.
Definition at line 38 of file OwningMemoryCheck.cpp.
References clang::tidy::utils::options::parseStringList().
|
override |
Make configuration of checker discoverable.
Definition at line 31 of file OwningMemoryCheck.cpp.