Cppcheck
Public Member Functions | Static Public Member Functions | List of all members
SymbolicConditionHandler Struct Reference
Inheritance diagram for SymbolicConditionHandler:
SimpleConditionHandler ConditionHandler

Public Member Functions

std::vector< Conditionparse (const Token *tok, const Settings &settings) const override
 
- Public Member Functions inherited from ConditionHandler
virtual Analyzer::Result forward (Token *start, const Token *stop, const Token *exprTok, const std::list< ValueFlow::Value > &values, TokenList &tokenlist, ErrorLogger &errorLogger, const Settings &settings, SourceLocation loc=SourceLocation::current()) const
 
virtual Analyzer::Result forward (Token *top, const Token *exprTok, const std::list< ValueFlow::Value > &values, TokenList &tokenlist, ErrorLogger &errorLogger, const Settings &settings, SourceLocation loc=SourceLocation::current()) const
 
virtual void reverse (Token *start, const Token *endToken, const Token *exprTok, const std::list< ValueFlow::Value > &values, TokenList &tokenlist, ErrorLogger &errorLogger, const Settings &settings, SourceLocation loc=SourceLocation::current()) const
 
void traverseCondition (const SymbolDatabase &symboldatabase, const Settings &settings, const std::set< const Scope * > &skippedFunctions, const std::function< void(const Condition &cond, Token *tok, const Scope *scope)> &f) const
 
void beforeCondition (TokenList &tokenlist, const SymbolDatabase &symboldatabase, ErrorLogger &errorLogger, const Settings &settings, const std::set< const Scope * > &skippedFunctions) const
 
void afterCondition (TokenList &tokenlist, const SymbolDatabase &symboldatabase, ErrorLogger &errorLogger, const Settings &settings, const std::set< const Scope * > &skippedFunctions) const
 
virtual ~ConditionHandler ()=default
 
 ConditionHandler (const ConditionHandler &)=default
 

Static Public Member Functions

static bool isNegatedBool (const Token *tok)
 
static const TokenskipNot (const Token *tok)
 
- Static Public Member Functions inherited from ConditionHandler
static TokenskipNotAndCasts (Token *tok, bool *inverted=nullptr)
 
static void fillFromPath (ProgramMemory &pm, const Token *top, MathLib::bigint path, const Settings &settings)
 

Additional Inherited Members

- Protected Member Functions inherited from ConditionHandler
 ConditionHandler ()=default
 

Detailed Description

Definition at line 7084 of file valueflow.cpp.

Member Function Documentation

◆ isNegatedBool()

static bool SymbolicConditionHandler::isNegatedBool ( const Token tok)
inlinestatic

Definition at line 7086 of file valueflow.cpp.

References astIsBool(), Token::astOperand1(), and Token::simpleMatch().

Referenced by parse().

◆ parse()

std::vector<Condition> SymbolicConditionHandler::parse ( const Token tok,
const Settings settings 
) const
inlineoverridevirtual

◆ skipNot()

static const Token* SymbolicConditionHandler::skipNot ( const Token tok)
inlinestatic

Definition at line 7093 of file valueflow.cpp.

References Token::astOperand1(), and Token::simpleMatch().

Referenced by parse().


The documentation for this struct was generated from the following file: