[all-commits] [llvm/llvm-project] 486b60: [Support] Initialize common options in `getRegiste...

Stephen via All-commits all-commits at lists.llvm.org
Tue Aug 3 23:59:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 486b6013f967ff80f8fa4d20bf5b93e94ce72aa0
      https://github.com/llvm/llvm-project/commit/486b6013f967ff80f8fa4d20bf5b93e94ce72aa0
  Author: Senran Zhang <zsrkmyn at gmail.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    M llvm/lib/Support/CommandLine.cpp
    M llvm/unittests/Support/CMakeLists.txt
    A llvm/unittests/Support/CommandLineInit/CMakeLists.txt
    A llvm/unittests/Support/CommandLineInit/CommandLineInitTest.cpp

  Log Message:
  -----------
  [Support] Initialize common options in `getRegisteredOptions`

This allows users accessing options in libSupport before invoking
`cl::ParseCommandLineOptions`, and also matches the behavior before
D105959.

Reviewed By: MaskRay

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




More information about the All-commits mailing list