clang-tools 23.0.0git
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>

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)