=?utf-8?q?Donát?= Nagy <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -76,14 +76,12 @@ class CheckerContext {
/// Returns the previous node in the exploded graph, which includes
/// the state of the program before the checker ran. Note, checkers should
/// not retain the node in their state since the nodes might get invalidated.
- ExplodedNode *getPredecessor() { return Pred; }
- const ExplodedNode *getPredecessor() const { return Pred; }
+ ExplodedNode *getPredecessor() const { return Pred; }
----------------
necto wrote:
I'm not sure about this one: I fear it might lead to more `const_cast`s as you
are now removing the possibility to get a const `Pred`.
https://github.com/llvm/llvm-project/pull/218937
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits