[PATCH] D76392: [AST] Make Expr::setDependence protected and remove add/removeDependence. NFC

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 18 15:46:43 PDT 2020


sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76392

Files:
  clang/include/clang/AST/Expr.h
  clang/lib/AST/ComputeDependence.cpp
  clang/lib/AST/Expr.cpp
  clang/lib/AST/ExprConcepts.cpp
  clang/lib/Sema/SemaOverload.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76392.251199.patch
Type: text/x-patch
Size: 7350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200318/47fdd1b0/attachment.bin>


More information about the cfe-commits mailing list