[all-commits] [llvm/llvm-project] 54cfc6: [CommandLine] Fix cl::ConsumeAfter support with mo...

Yi-Hong Lyu via All-commits all-commits at lists.llvm.org
Fri Apr 17 02:20:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 54cfc6944e2669d7a41a164fc4f3d923a71e701d
      https://github.com/llvm/llvm-project/commit/54cfc6944e2669d7a41a164fc4f3d923a71e701d
  Author: Yi-Hong Lyu <yilyu at microsoft.com>
  Date:   2020-04-17 (Fri, 17 Apr 2020)

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

  Log Message:
  -----------
  [CommandLine] Fix cl::ConsumeAfter support with more than one positional argument

Summary:
Currently, cl::ConsumeAfter only works for the case that has exactly one
positional argument. Without the fix, it skip fulfilling first positional
argument and put that additional positional argument in interpreter arguments.

Reviewers: bkramer, Mordante, rnk, lattner, beanz, craig.topper

Reviewed By: rnk

Subscribers: JosephTremoulet, hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list