[all-commits] [llvm/llvm-project] fa1149: [clang][cli] Extract FileSystem and Migrator optio...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Feb 10 04:36:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa11496b618e84ce1daa53108ef87c25efaf3813
      https://github.com/llvm/llvm-project/commit/fa11496b618e84ce1daa53108ef87c25efaf3813
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Frontend/CompilerInvocation.h
    M clang/lib/Frontend/CompilerInvocation.cpp

  Log Message:
  -----------
  [clang][cli] Extract FileSystem and Migrator options parsing/generation

This patch splits out the last two option groups (`Filesystem` and `Migrator`) into their own `Parse`/`Generate` functions.

This effectively removes the need for `parseSimpleArgs` and marshalling block in `CompilerInvocation::generateCC1CommandLine`.

The two new `Parse`/`Generate` functions are not part of the round-trip, because they contain no custom code and the very next patch starts round-tripping the whole `CompilerInvocation`.

Reviewed By: dexonsmith

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




More information about the All-commits mailing list