clang-tools 18.0.0git
Namespaces | Functions | Variables
UseEqualsDefaultCheck.cpp File Reference
#include "UseEqualsDefaultCheck.h"
#include "../utils/LexerUtils.h"
#include "../utils/Matchers.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include <optional>

Go to the source code of this file.


namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::tidy
namespace  clang::tidy::modernize


static std::set< const FieldDecl * > clang::tidy::modernize::getAllNamedFields (const CXXRecordDecl *Record)
 Finds all the named non-static fields of Record.
static std::set< const Type * > clang::tidy::modernize::getAllDirectBases (const CXXRecordDecl *Record)
 Returns the names of the direct bases of Record, both virtual and non-virtual.
internal::Matcher< Expr > clang::tidy::modernize::accessToFieldInVar (const FieldDecl *Field, const ValueDecl *Var)
 Returns a matcher that matches member expressions where the base is the variable declared as Var and the accessed member is the one declared as Field.
static bool clang::tidy::modernize::isCopyConstructorAndCanBeDefaulted (ASTContext *Context, const CXXConstructorDecl *Ctor)
 Check that the given constructor has copy signature and that it copy-initializes all its bases and members.
static bool clang::tidy::modernize::isCopyAssignmentAndCanBeDefaulted (ASTContext *Context, const CXXMethodDecl *Operator)
 Checks that the given method is an overloading of the assignment operator, has copy signature, returns a reference to "*this" and copies all its members and subobjects.
static bool clang::tidy::modernize::bodyEmpty (const ASTContext *Context, const CompoundStmt *Body)
 Returns false if the body has any non-whitespace character.


static const char clang::tidy::modernize::SpecialFunction [] = "SpecialFunction"