clang
15.0.0git
|
Models the behavior of Chromium's CHECK, DCHECK, etc. More...
#include "clang/Analysis/FlowSensitive/Models/ChromiumCheckModel.h"
Public Member Functions | |
ChromiumCheckModel ()=default | |
bool | transfer (const Stmt *Stmt, Environment &Env) override |
Return value indicates whether the model processed the Stmt . More... | |
![]() | |
virtual | ~ValueModel ()=default |
virtual bool | compareEquivalent (QualType Type, const Value &Val1, const Environment &Env1, const Value &Val2, const Environment &Env2) |
Returns true if and only if Val1 is equivalent to Val2 . More... | |
virtual bool | merge (QualType Type, const Value &Val1, const Environment &Env1, const Value &Val2, const Environment &Env2, Value &MergedVal, Environment &MergedEnv) |
Modifies MergedVal to approximate both Val1 and Val2 . More... | |
Models the behavior of Chromium's CHECK, DCHECK, etc.
macros, so that code after a call to *CHECK
can rely on the condition being true.
Definition at line 26 of file ChromiumCheckModel.h.
|
default |
|
overridevirtual |
Return value indicates whether the model processed the Stmt
.
Implements clang::dataflow::DataflowModel.
Definition at line 53 of file ChromiumCheckModel.cpp.
References clang::dataflow::Environment::addToFlowCondition(), clang::dataflow::Environment::getBoolLiteralValue(), and clang::dataflow::isCheckLikeMethod().