[all-commits] [llvm/llvm-project] d0e8a9: [clang][cli] Generate HeaderSearch options separately

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Jan 27 06:01:46 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d0e8a9e5a2f02ec1a3aa4c29469be504ff00d1db
      https://github.com/llvm/llvm-project/commit/d0e8a9e5a2f02ec1a3aa4c29469be504ff00d1db
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

  Changed paths:
    M clang/lib/Frontend/CompilerInvocation.cpp

  Log Message:
  -----------
  [clang][cli] Generate HeaderSearch options separately

This patch moves parsing of header search options from `generateCC1Options` to separate `GenerateHeaderSearchArgs`.

The round-trip algorithm in D94472 requires this separation to be able to run parsing and generating **only** for the options that need to be tested via round-tripping.

This also moves the `GENERATE_OPTION_WITH_MARSHALLING` to the top of the file, because other kinds of options will be generated in separate functions that will be spread throughout `CompilerInvocation.cpp` to be close to their parsing counterparts.

Reviewed By: dexonsmith

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




More information about the All-commits mailing list