The expected pattern is for subclasses to initialize through
computeDependence, which needs only setDependence.
The few places that still use addDependence can be simulated with get+set.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/AST/Expr.h | ||
---|---|---|
2772 | the method name seems too concrete to me, I'd prefer to drop ForPostponedNameLookup, though there is only one usage in Sema. |
clang/include/clang/AST/Expr.h | ||
---|---|---|
2772 | So the idea here is that we're breaking encapsulation for a special purpose, and this method shouldn't be generally used to manipulate dependence. |
the method name seems too concrete to me, I'd prefer to drop ForPostponedNameLookup, though there is only one usage in Sema.