clang-tools 19.0.0git
Namespaces | Functions | Variables
ElseAfterReturnCheck.cpp File Reference
#include "ElseAfterReturnCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Tooling/FixIt.h"
#include "llvm/ADT/SmallVector.h"

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 const DeclRefExpr * clang::tidy::readability::findUsage (const Stmt *Node, int64_t DeclIdentifier)
 
static const DeclRefExpr * clang::tidy::readability::findUsageRange (const Stmt *Node, const llvm::ArrayRef< int64_t > &DeclIdentifiers)
 
static const DeclRefExpr * clang::tidy::readability::checkInitDeclUsageInElse (const IfStmt *If)
 
static const DeclRefExpr * clang::tidy::readability::checkConditionVarUsageInElse (const IfStmt *If)
 
static bool clang::tidy::readability::containsDeclInScope (const Stmt *Node)
 
static void clang::tidy::readability::removeElseAndBrackets (DiagnosticBuilder &Diag, ASTContext &Context, const Stmt *Else, SourceLocation ElseLoc)
 
static bool clang::tidy::readability::hasPreprocessorBranchEndBetweenLocations (const ElseAfterReturnCheck::ConditionalBranchMap &ConditionalBranchMap, const SourceManager &SM, SourceLocation StartLoc, SourceLocation EndLoc)
 
static StringRef clang::tidy::readability::getControlFlowString (const Stmt &Stmt)
 

Variables

static const char clang::tidy::readability::InterruptingStr [] = "interrupting"
 
static const char clang::tidy::readability::WarningMessage [] = "do not use 'else' after '%0'"
 
static const char clang::tidy::readability::WarnOnUnfixableStr [] = "WarnOnUnfixable"
 
static const char clang::tidy::readability::WarnOnConditionVariablesStr [] = "WarnOnConditionVariables"