clang-tools
9.0.0
|
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) | |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
Make configuration of checker discoverable. More... | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
Match common cases, where the owner semantic is relevant, like function calls, delete expressions and others. More... | |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
ClangTidyChecks that register ASTMatchers should do the actual work in here. More... | |
![]() | |
ClangTidyCheck (StringRef CheckName, ClangTidyContext *Context) | |
Initializes the check with CheckName and Context . More... | |
virtual void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) |
Override this to register PPCallbacks in the preprocessor. More... | |
DiagnosticBuilder | diag (SourceLocation Loc, StringRef Description, DiagnosticIDs::Level Level=DiagnosticIDs::Warning) |
Add a diagnostic with the check's name. More... | |
Additional Inherited Members | |
![]() | |
StringRef | getCurrentMainFile () const |
Returns the main file name of the current translation unit. More... | |
const LangOptions & | getLangOpts () const |
Returns the language options from the context. More... | |
![]() | |
OptionsView | Options |
Checks for common use cases for gsl::owner and enforces the unique owner nature of it whenever possible.
For the user-facing documentation see: http://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-owning-memory.html
Definition at line 23 of file OwningMemoryCheck.h.
|
inline |
Definition at line 25 of file OwningMemoryCheck.h.
References storeOptions().
|
overridevirtual |
ClangTidyChecks
that register ASTMatchers should do the actual work in here.
Reimplemented from clang::tidy::ClangTidyCheck.
Definition at line 177 of file OwningMemoryCheck.cpp.
|
overridevirtual |
Match common cases, where the owner semantic is relevant, like function calls, delete expressions and others.
Reimplemented from clang::tidy::ClangTidyCheck.
Definition at line 41 of file OwningMemoryCheck.cpp.
|
overridevirtual |
Make configuration of checker discoverable.
Reimplemented from clang::tidy::ClangTidyCheck.
Definition at line 34 of file OwningMemoryCheck.cpp.
Referenced by OwningMemoryCheck().