clang API Documentation

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

Typedef Documentation

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

Definition at line 31 of file ObjCUnusedIVarsChecker.cpp.


Enumeration Type Documentation

enum IVarState
Enumerator:
Unused 
Used 

Definition at line 30 of file ObjCUnusedIVarsChecker.cpp.


Function Documentation

static void checkObjCUnusedIvar ( const ObjCImplementationDecl D,
BugReporter BR,
const CheckerBase Checker 
) [static]
static void Scan ( IvarUsageMap M,
const Stmt S 
) [static]

Definition at line 33 of file ObjCUnusedIVarsChecker.cpp.

References clang::Stmt::child_begin(), clang::Stmt::child_end(), and Used.

Referenced by checkObjCUnusedIvar(), and Scan().

static void Scan ( IvarUsageMap M,
const ObjCPropertyImplDecl D 
) [static]
static void Scan ( IvarUsageMap M,
const ObjCContainerDecl D 
) [static]
static void Scan ( IvarUsageMap M,
const DeclContext C,
const FileID  FID,
SourceManager SM 
) [static]