[all-commits] [llvm/llvm-project] 88ab38: [clang][cli] Split DefaultAnyOf into a default val...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Tue Dec 1 01:00:39 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 88ab38449b49bf002ed7794d1b81d362aa9f9df2
      https://github.com/llvm/llvm-project/commit/88ab38449b49bf002ed7794d1b81d362aa9f9df2
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2020-12-01 (Tue, 01 Dec 2020)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/unittests/Frontend/CompilerInvocationTest.cpp
    M llvm/include/llvm/Option/OptParser.td
    M llvm/unittests/Option/OptionMarshallingTest.cpp
    M llvm/unittests/Option/Opts.td
    M llvm/utils/TableGen/OptParserEmitter.cpp

  Log Message:
  -----------
  [clang][cli] Split DefaultAnyOf into a default value and ImpliedByAnyOf

This makes the options API composable, allows boolean flags to imply non-boolean values and makes the code more logical (IMO).

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




More information about the All-commits mailing list