clang-tools 22.0.0git
PassByValueCheck.cpp File Reference
#include "PassByValueCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h"

Go to the source code of this file.

Namespaces

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

Functions

static bool clang::tidy::modernize::isFirstFriendOfSecond (const CXXRecordDecl *Friend, const CXXRecordDecl *Class)
static TypeMatcher clang::tidy::modernize::notTemplateSpecConstRefType ()
static TypeMatcher clang::tidy::modernize::nonConstValueType ()
static bool clang::tidy::modernize::paramReferredExactlyOnce (const CXXConstructorDecl *Ctor, const ParmVarDecl *ParamDecl)
 Whether or not ParamDecl is used exactly one time in Ctor.
static bool clang::tidy::modernize::hasRValueOverload (const CXXConstructorDecl *Ctor, const ParmVarDecl *Param)
 Returns true if the given constructor is part of a lvalue/rvalue reference pair, i.e.
static SmallVector< const ParmVarDecl *, 2 > clang::tidy::modernize::collectParamDecls (const CXXConstructorDecl *Ctor, const ParmVarDecl *ParamDecl)
 Find all references to ParamDecl across all of the redeclarations of Ctor.