clang-tools 24.0.0git
ExpensiveValueOrCheck.cpp File Reference
#include "ExpensiveValueOrCheck.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "../utils/TypeTraits.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/FixIt.h"

Go to the source code of this file.

Namespaces

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

Functions

static bool clang::tidy::performance::hasOperatorStar (const CXXRecordDecl *RD)
static StringRef clang::tidy::performance::findValueMethod (const CXXRecordDecl *RD)
static std::string clang::tidy::performance::buildSuggestion (const CXXRecordDecl *OptionalClass)
static std::optional< FixItHint > clang::tidy::performance::buildFixIt (const CXXMemberCallExpr *Call, const Expr *ObjExpr, const Expr *FallbackArg, const CXXRecordDecl *OptionalClass, const ASTContext &Ctx)