clang  6.0.0svn
Typedefs | Enumerations | Functions
ObjCUnusedIVarsChecker.cpp File Reference
#include "ClangSACheckers.h"
#include "clang/AST/Attr.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprObjC.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceManager.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
Include dependency graph for ObjCUnusedIVarsChecker.cpp:

Go to the source code of this file.

Typedefs

typedef llvm::DenseMap< const ObjCIvarDecl *, IVarStateIvarUsageMap
 

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, SourceManager &SM)
 
static void checkObjCUnusedIvar (const ObjCImplementationDecl *D, BugReporter &BR, const CheckerBase *Checker)
 

Typedef Documentation

◆ IvarUsageMap

typedef llvm::DenseMap<const ObjCIvarDecl*,IVarState> IvarUsageMap

Definition at line 31 of file ObjCUnusedIVarsChecker.cpp.

Enumeration Type Documentation

◆ IVarState

enum IVarState
Enumerator
Unused 
Used 

Definition at line 30 of file ObjCUnusedIVarsChecker.cpp.

Function Documentation

◆ checkObjCUnusedIvar()

static void checkObjCUnusedIvar ( const ObjCImplementationDecl D,
BugReporter BR,
const CheckerBase Checker 
)
static

◆ Scan() [1/4]

static void Scan ( IvarUsageMap M,
const Stmt S 
)
static

Definition at line 33 of file ObjCUnusedIVarsChecker.cpp.

Referenced by checkObjCUnusedIvar().

◆ Scan() [2/4]

static void Scan ( IvarUsageMap M,
const ObjCPropertyImplDecl D 
)
static

◆ Scan() [3/4]

static void Scan ( IvarUsageMap M,
const ObjCContainerDecl D 
)
static

Definition at line 78 of file ObjCUnusedIVarsChecker.cpp.

◆ Scan() [4/4]

static void Scan ( IvarUsageMap M,
const DeclContext C,
const FileID  FID,
SourceManager SM 
)
static

Definition at line 97 of file ObjCUnusedIVarsChecker.cpp.