clang-tools 17.0.0git
Namespaces | Functions
ConstReturnTypeCheck.cpp File Reference
#include "ConstReturnTypeCheck.h"
#include "../utils/LexerUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Lex/Lexer.h"
#include <optional>
Include dependency graph for ConstReturnTypeCheck.cpp:

Go to the source code of this file.

Namespaces

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

Functions

static std::optional< Token > clang::tidy::readability::findConstToRemove (const FunctionDecl *Def, const MatchFinder::MatchResult &Result)
 
static CheckResult clang::tidy::readability::checkDef (const clang::FunctionDecl *Def, const MatchFinder::MatchResult &MatchResult)
 

Variable Documentation

◆ ConstRange

CharSourceRange ConstRange

Definition at line 68 of file ConstReturnTypeCheck.cpp.

◆ DeclLocs

llvm::SmallVector<clang::SourceLocation, 4> DeclLocs

Definition at line 74 of file ConstReturnTypeCheck.cpp.

◆ Hints

llvm::SmallVector<clang::FixItHint, 4> Hints

Definition at line 71 of file ConstReturnTypeCheck.cpp.