[all-commits] [llvm/llvm-project] b4f02d: [AST] Make Expr::setDependence protected and remov...

Sam McCall via All-commits all-commits at lists.llvm.org
Thu Mar 19 14:13:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b4f02d89e5d8d2e3b85abced3964c937b693494c
      https://github.com/llvm/llvm-project/commit/b4f02d89e5d8d2e3b85abced3964c937b693494c
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    M clang/include/clang/AST/Expr.h
    M clang/lib/AST/ComputeDependence.cpp
    M clang/lib/AST/Expr.cpp
    M clang/lib/AST/ExprConcepts.cpp
    M clang/lib/Sema/SemaOverload.cpp

  Log Message:
  -----------
  [AST] Make Expr::setDependence protected and remove add/removeDependence. NFC

Summary:
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.

Reviewers: hokein

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D76392




More information about the All-commits mailing list