[all-commits] [llvm/llvm-project] 20b4f4: [Driver] Add callback to Command execution

Serge Pavlov via All-commits all-commits at lists.llvm.org
Wed Nov 4 21:23:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 20b4f4f76030f8712824c91b5f0b0a611476f747
      https://github.com/llvm/llvm-project/commit/20b4f4f76030f8712824c91b5f0b0a611476f747
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2020-11-05 (Thu, 05 Nov 2020)

  Changed paths:
    M clang/include/clang/Driver/Compilation.h
    M clang/lib/Driver/Compilation.cpp
    M clang/unittests/Driver/ToolChainTest.cpp

  Log Message:
  -----------
  [Driver] Add callback to Command execution

Summary:
Object of type `Compilation` now can keep a callback that is called
after each execution of `Command`. This must simplify adaptation of
clang in custom distributions and allow facilities like collection of
execution statistics.

Reviewers: rsmith, rjmccall, Eugene.Zelenko

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list