clang-tools  11.0.0
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/Tooling/FixIt.h"
#include "llvm/ADT/SmallVector.h"
Include dependency graph for ElseAfterReturnCheck.cpp:

Go to the source code of this file.

Namespaces

 clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
 clang::tidy
 
 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)
 

Variables

static const char clang::tidy::readability::ReturnStr [] = "return"
 
static const char clang::tidy::readability::ContinueStr [] = "continue"
 
static const char clang::tidy::readability::BreakStr [] = "break"
 
static const char clang::tidy::readability::ThrowStr [] = "throw"
 
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"