#include "ASTUtils.h"
#include "DiagOutputUtils.h"
#include "PtrTypesSemantics.h"
#include "clang/AST/CXXInheritance.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/ParentMapContext.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include <optional>
usingnamespaceclang;
usingnamespaceento;
namespace {
bool isRefcountedStringsHack(const VarDecl *V) { … }
bool isGuardedScopeEmbeddedInGuardianScope(const VarDecl *Guarded,
const VarDecl *MaybeGuardian) { … }
class UncountedLocalVarsChecker
: public Checker<check::ASTDecl<TranslationUnitDecl>> { … };
}
void ento::registerUncountedLocalVarsChecker(CheckerManager &Mgr) { … }
bool ento::shouldRegisterUncountedLocalVarsChecker(const CheckerManager &) { … }