clang API Documentation
#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"
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 llvm::DenseMap<const ObjCIvarDecl*,IVarState> IvarUsageMap |
Definition at line 31 of file ObjCUnusedIVarsChecker.cpp.
| enum IVarState |
Definition at line 30 of file ObjCUnusedIVarsChecker.cpp.
| static void checkObjCUnusedIvar | ( | const ObjCImplementationDecl * | D, |
| BugReporter & | BR, | ||
| const CheckerBase * | Checker | ||
| ) | [static] |
Definition at line 107 of file ObjCUnusedIVarsChecker.cpp.
References clang::ento::PathDiagnosticLocation::create(), clang::ento::BugReporter::EmitBasicReport(), clang::ObjCImplDecl::getClassInterface(), clang::Decl::getDeclContext(), clang::SourceManager::getFileID(), clang::Decl::getLocation(), clang::ento::BugReporter::getSourceManager(), clang::ObjCInterfaceDecl::ivars(), clang::ObjCIvarDecl::Private, Scan(), SM, and Unused.
| 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] |
Definition at line 64 of file ObjCUnusedIVarsChecker.cpp.
References clang::ObjCPropertyImplDecl::getPropertyIvarDecl(), and Used.
| static void Scan | ( | IvarUsageMap & | M, |
| const ObjCContainerDecl * | D | ||
| ) | [static] |
Definition at line 78 of file ObjCUnusedIVarsChecker.cpp.
References clang::ObjCContainerDecl::instance_methods(), and Scan().
| static void Scan | ( | IvarUsageMap & | M, |
| const DeclContext * | C, | ||
| const FileID | FID, | ||
| SourceManager & | SM | ||
| ) | [static] |
Definition at line 97 of file ObjCUnusedIVarsChecker.cpp.
References clang::DeclContext::decls(), clang::SourceManager::getFileID(), and Scan().