[clang] [analyzer] Variant checker bindings (PR #87886)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue May 14 05:26:04 PDT 2024
================
@@ -37,6 +43,19 @@ static SVal conjureOffsetSymbolOnLocation(
return Symbol;
}
+// Update the SVal bound to the Cast expression with the SVal
+// bound to the casted expression
+static ProgramStateRef updateStateAfterSimpleCast(StmtNodeBuilder& Bldr,
----------------
NagyDonat wrote:
Rename `Simple` -> `Trivial` and emphasize in the comment that this is only applied to trivial casts. (Without knowing the context where it's called, it's a red flag to see that the cast is unconditionally ignored within this function.)
https://github.com/llvm/llvm-project/pull/87886
More information about the cfe-commits
mailing list