clang-tools 22.0.0git
|
This check finds macro expansions of DISALLOW_COPY_AND_ASSIGN(Type) and replaces them with a deleted copy constructor and a deleted assignment operator. More...
#include <ReplaceDisallowCopyAndAssignMacroCheck.h>
Public Member Functions | |
ReplaceDisallowCopyAndAssignMacroCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
const StringRef & | getMacroName () const |
This check finds macro expansions of DISALLOW_COPY_AND_ASSIGN(Type) and replaces them with a deleted copy constructor and a deleted assignment operator.
Before:
After:
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/replace-disallow-copy-and-assign-macro.html
Definition at line 39 of file ReplaceDisallowCopyAndAssignMacroCheck.h.
clang::tidy::modernize::ReplaceDisallowCopyAndAssignMacroCheck::ReplaceDisallowCopyAndAssignMacroCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 72 of file ReplaceDisallowCopyAndAssignMacroCheck.cpp.
|
inline |
Definition at line 50 of file ReplaceDisallowCopyAndAssignMacroCheck.h.
|
inlineoverride |
Definition at line 43 of file ReplaceDisallowCopyAndAssignMacroCheck.h.
|
override |
Definition at line 77 of file ReplaceDisallowCopyAndAssignMacroCheck.cpp.
|
override |
Definition at line 84 of file ReplaceDisallowCopyAndAssignMacroCheck.cpp.