clang-tools 22.0.0git
PreferMemberInitializerCheck.cpp File Reference
#include "PreferMemberInitializerCheck.h"
#include "../utils/LexerUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "llvm/ADT/DenseMap.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::canAdvanceAssignment (AssignedLevel Level)
static void clang::tidy::cppcoreguidelines::updateAssignmentLevel (const FieldDecl *Field, const Expr *Init, const CXXConstructorDecl *Ctor, llvm::DenseMap< const FieldDecl *, AssignedLevel > &AssignedFields)
static std::optional< AssignmentPair > clang::tidy::cppcoreguidelines::isAssignmentToMemberOf (const CXXRecordDecl *Rec, const Stmt *S, const CXXConstructorDecl *Ctor)