#include "clang/AST/ASTContext.h"
#include "clang/AST/Attr.h"
#include "clang/AST/ParentMap.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Analysis/Analyses/LiveVariables.h"
#include "clang/Lex/Lexer.h"
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/SaveAndRestore.h"
usingnamespaceclang;
usingnamespaceento;
namespace {
class EHCodeVisitor : public RecursiveASTVisitor<EHCodeVisitor> { … };
class ReachableCode { … };
}
void ReachableCode::computeReachableBlocks() { … }
static const Expr *
LookThroughTransitiveAssignmentsAndCommaOperators(const Expr *Ex) { … }
namespace {
class DeadStoresChecker : public Checker<check::ASTCodeBody> { … };
class DeadStoreObs : public LiveVariables::Observer { … };
}
namespace {
class FindEscaped { … };
}
void DeadStoresChecker::checkASTCodeBody(const Decl *D, AnalysisManager &mgr,
BugReporter &BR) const { … }
void ento::registerDeadStoresChecker(CheckerManager &Mgr) { … }
bool ento::shouldRegisterDeadStoresChecker(const CheckerManager &mgr) { … }