[all-commits] [llvm/llvm-project] 405e83: [CommandLine] Add inline ArgName printing

Don Hinton via All-commits all-commits at lists.llvm.org
Wed Nov 6 08:17:58 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 405e83689fb42f8ae673d9a26bd21366c4a055be
      https://github.com/llvm/llvm-project/commit/405e83689fb42f8ae673d9a26bd21366c4a055be
  Author: Don Hinton <hintonda at gmail.com>
  Date:   2019-11-06 (Wed, 06 Nov 2019)

  Changed paths:
    M llvm/lib/Support/CommandLine.cpp
    M llvm/unittests/Support/CommandLineTest.cpp

  Log Message:
  -----------
  [CommandLine] Add inline ArgName printing

Summary:
This patch adds PrintArgInline (after PrintArg) that strips the
leading spaces from an argument before printing them, for usage
inline.

Related bug: PR42943 <https://bugs.llvm.org/show_bug.cgi?id=42943>

Patch by Daan Sprenkels!

Reviewers: jhenderson, chandlerc, hintonda

Reviewed By: jhenderson

Subscribers: hiraditya, kristina, llvm-commits, dsprenkels

Tags: #llvm

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




More information about the All-commits mailing list