clang-tools 18.0.0git
Namespaces | Functions
PreferMemberInitializerCheck.cpp File Reference
#include "PreferMemberInitializerCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"

Go to the source code of this file.

Namespaces

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

Functions

static bool clang::tidy::cppcoreguidelines::isControlStatement (const Stmt *S)
 
static bool clang::tidy::cppcoreguidelines::isNoReturnCallStatement (const Stmt *S)
 
static bool clang::tidy::cppcoreguidelines::isLiteral (const Expr *E)
 
static bool clang::tidy::cppcoreguidelines::isUnaryExprOfLiteral (const Expr *E)
 
static bool clang::tidy::cppcoreguidelines::shouldBeDefaultMemberInitializer (const Expr *Value)
 
static bool clang::tidy::cppcoreguidelines::isSafeAssignment (const FieldDecl *Field, const Expr *Init, const CXXConstructorDecl *Context)
 
static std::pair< const FieldDecl *, const Expr * > clang::tidy::cppcoreguidelines::isAssignmentToMemberOf (const CXXRecordDecl *Rec, const Stmt *S, const CXXConstructorDecl *Ctor)