Go to the source code of this file.
◆ try_evaluate_pointer_comparison()
Try to evaluate a simple pointer comparison.
- Parameters
-
operation | ID_equal or ID_not_equal |
symbol_expr | The symbol expression in the condition |
other_operand | The other expression in the condition; we only support an address of expression, a typecast of an address of expression or a null pointer, and return an empty std::optional in all other cases |
value_set | The value-set for looking up what the symbol can point to |
language_mode | The language mode |
ns | A namespace |
- Returns
- If we were able to evaluate the condition as true or false then we return that, otherwise we return an empty std::optional
Definition at line 33 of file simplify_expr_with_value_set.cpp.