[all-commits] [llvm/llvm-project] ce0ab9: [clang][dataflow][NFC] Share code between Environm...

martinboehme via All-commits all-commits at lists.llvm.org
Mon Apr 3 01:25:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce0ab9d11cec0a81c4e48645a23fa8eddea926ab
      https://github.com/llvm/llvm-project/commit/ce0ab9d11cec0a81c4e48645a23fa8eddea926ab
  Author: Martin Braenne <mboehme at google.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

  Changed paths:
    M clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
    M clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp

  Log Message:
  -----------
  [clang][dataflow][NFC] Share code between Environment ctor and pushCallInternal().

The deduplicated code is moved into initVars().

As an added bonus, pushCallInternal() now also gets the "Add all fields
mentioned in default member initializers" behavior, which apparently had been
added to the Environment ctor but not pushCallInternal().

Reviewed By: xazax.hun, ymandel

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




More information about the All-commits mailing list