|
clang
3.8.0
|
#include "ClangSACheckers.h"#include "llvm/Support/Path.h"#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"#include "clang/StaticAnalyzer/Core/Checker.h"#include "clang/StaticAnalyzer/Core/CheckerManager.h"#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"Go to the source code of this file.
Macros | |
| #define | REGISTER_CHECKER(name, trackingRequired) |
Enumerations | |
| enum | Nullability : char |
| enum | ErrorKind : int |
Functions | |
| REGISTER_MAP_WITH_PROGRAMSTATE (NullabilityMap, const MemRegion *, NullabilityState) enum class NullConstraint | |
| static NullConstraint | getNullConstraint (DefinedOrUnknownSVal Val, ProgramStateRef State) |
| static Nullability | getNullabilityAnnotation (QualType Type) |
| template<typename ParamVarDeclRange > | |
| static bool | checkParamsForPreconditionViolation (const ParamVarDeclRange &Params, ProgramStateRef State, const LocationContext *LocCtxt) |
| static bool | checkPreconditionViolation (ProgramStateRef State, ExplodedNode *N, CheckerContext &C) |
| static Nullability | getReceiverNullability (const ObjCMethodCall &M, ProgramStateRef State) |
| static const Expr * | matchValueExprForBind (const Stmt *S) |
| For a given statement performing a bind, attempt to syntactically match the expression resulting in the bound value. More... | |
| static bool | isARCNilInitializedLocal (CheckerContext &C, const Stmt *S) |
| Returns true if. More... | |
| #define REGISTER_CHECKER | ( | name, | |
| trackingRequired | |||
| ) |
Definition at line 1049 of file NullabilityChecker.cpp.
|
strong |
Definition at line 82 of file NullabilityChecker.cpp.
|
strong |
Definition at line 46 of file NullabilityChecker.cpp.
|
static |
Definition at line 332 of file NullabilityChecker.cpp.
References getNullabilityAnnotation(), and getNullConstraint().
Referenced by checkPreconditionViolation().
|
static |
|
static |
Definition at line 319 of file NullabilityChecker.cpp.
References clang::AttributedType::attr_nonnull, clang::AttributedType::attr_nullable, clang::Type::getAs(), clang::Nullable, and clang::Unspecified.
Referenced by checkParamsForPreconditionViolation().
|
static |
Definition at line 249 of file NullabilityChecker.cpp.
References clang::ento::ConditionTruthVal::isConstrainedFalse(), clang::ento::ConditionTruthVal::isConstrainedTrue(), and Unknown.
Referenced by checkParamsForPreconditionViolation(), and getReceiverNullability().
|
static |
Definition at line 674 of file NullabilityChecker.cpp.
References clang::ento::SVal::getAs(), getNullConstraint(), clang::ObjCMethodCall::getReceiverSVal(), clang::ObjCMethodCall::isReceiverSelfOrSuper(), and clang::Unspecified.
|
static |
Returns true if.
| S | is a DeclStmt for a local variable that ObjC automated reference counting initialized with zero. |
Definition at line 902 of file NullabilityChecker.cpp.
References clang::ento::CheckerContext::getASTContext(), clang::ASTContext::getLangOpts(), and S.
For a given statement performing a bind, attempt to syntactically match the expression resulting in the bound value.
Definition at line 878 of file NullabilityChecker.cpp.
References clang::BO_Assign.
| REGISTER_MAP_WITH_PROGRAMSTATE | ( | NullabilityMap | , |
| const MemRegion * | , | ||
| NullabilityState | |||
| ) |
Definition at line 237 of file NullabilityChecker.cpp.
References Unknown.
1.8.6