clang 20.0.0git
|
#include "clang/AST/Attr.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprObjC.h"
#include "clang/Analysis/PathDiagnostic.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceManager.h"
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "llvm/ADT/STLExtras.h"
Go to the source code of this file.
Typedefs | |
typedef llvm::DenseMap< const ObjCIvarDecl *, IVarState > | IvarUsageMap |
Enumerations | |
enum | IVarState { Unused , Used } |
Functions | |
static void | Scan (IvarUsageMap &M, const Stmt *S) |
static void | Scan (IvarUsageMap &M, const ObjCPropertyImplDecl *D) |
static void | Scan (IvarUsageMap &M, const ObjCContainerDecl *D) |
static void | Scan (IvarUsageMap &M, const DeclContext *C, const FileID FID, const SourceManager &SM) |
static void | checkObjCUnusedIvar (const ObjCImplementationDecl *D, BugReporter &BR, const CheckerBase *Checker) |
typedef llvm::DenseMap<const ObjCIvarDecl*,IVarState> IvarUsageMap |
Definition at line 31 of file ObjCUnusedIVarsChecker.cpp.
enum IVarState |
Enumerator | |
---|---|
Unused | |
Used |
Definition at line 30 of file ObjCUnusedIVarsChecker.cpp.
|
static |
Definition at line 105 of file ObjCUnusedIVarsChecker.cpp.
References clang::ento::PathDiagnosticLocation::create(), D, clang::ento::BugReporter::EmitBasicReport(), clang::Decl::getDeclContext(), clang::Decl::getLocation(), clang::ento::BugReporter::getSourceManager(), clang::ObjCIvarDecl::Private, Scan(), SM, and Unused.
|
static |
Definition at line 95 of file ObjCUnusedIVarsChecker.cpp.
|
static |
Definition at line 76 of file ObjCUnusedIVarsChecker.cpp.
|
static |
Definition at line 62 of file ObjCUnusedIVarsChecker.cpp.
|
static |
Definition at line 33 of file ObjCUnusedIVarsChecker.cpp.
References D, Scan(), and Used.
Referenced by checkObjCUnusedIvar(), clang::getAsFileEvents(), and Scan().