clang-tools 20.0.0git
Namespaces | Functions
IsolateDeclarationCheck.cpp File Reference
#include "IsolateDeclarationCheck.h"
#include "../utils/LexerUtils.h"
#include "clang/ASTMatchers/ASTMatchFinder.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 SourceLocation clang::tidy::readability::findStartOfIndirection (SourceLocation Start, int Indirections, const SourceManager &SM, const LangOptions &LangOpts)
 
static bool clang::tidy::readability::isMacroID (SourceRange R)
 
static int clang::tidy::readability::countIndirections (const Type *T, int Indirections=0)
 This function counts the number of written indirections for the given Type T.
 
static bool clang::tidy::readability::typeIsMemberPointer (const Type *T)
 
static std::optional< std::vector< SourceRange > > clang::tidy::readability::declRanges (const DeclStmt *DS, const SourceManager &SM, const LangOptions &LangOpts)
 This function tries to extract the SourceRanges that make up all declarations in this DeclStmt.
 
static std::optional< std::vector< StringRef > > clang::tidy::readability::collectSourceRanges (llvm::ArrayRef< SourceRange > Ranges, const SourceManager &SM, const LangOptions &LangOpts)
 
static std::vector< std::string > clang::tidy::readability::createIsolatedDecls (llvm::ArrayRef< StringRef > Snippets)
 Expects a vector {TypeSnippet, Firstdecl, SecondDecl, ...}.