[all-commits] [llvm/llvm-project] 7f2ae3: add print-change diff modes that do not use colour

jamieschmeiser via All-commits all-commits at lists.llvm.org
Thu Mar 25 07:36:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f2ae3d55f19421a8bad4bc001e5fd7dfea0ddcb
      https://github.com/llvm/llvm-project/commit/7f2ae3d55f19421a8bad4bc001e5fd7dfea0ddcb
  Author: Jamie Schmeiser <schmeise at ca.ibm.com>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M llvm/include/llvm/Passes/StandardInstrumentations.h
    M llvm/lib/Passes/StandardInstrumentations.cpp
    M llvm/test/Other/ChangePrinters/print-changed-diff.ll

  Log Message:
  -----------
  add print-change diff modes that do not use colour

Summary:
The colour characters currently added to the output of -print-changed=diff
and -print-changed=diff-quiet cause difficulties when capturing the output
and examining it in an editor. Change the function to not have the colour
characters and add 2 new choices (-print-changed=cdiff and
-print-changed=cdiff-quiet) to retain the existing functionality of adding
the colour characters.

Author: Jamie Schmeiser <schmeise at ca.ibm.com>
Reviewed By: aeubanks (Arthur Eubanks) yrouban (Yevgeny Rouban)
Differential Revision: https://reviews.llvm.org/D97398




More information about the All-commits mailing list