[clang][cli] Parse HeaderSearch options separately
authorJan Svoboda <jan_svoboda@apple.com>
Wed, 27 Jan 2021 13:34:09 +0000 (14:34 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Wed, 27 Jan 2021 13:45:55 +0000 (14:45 +0100)
commit05127fba4b66c91489e9f380f691a0bb42cd2782
treec023dea6407c7e97a36b840ed707002050b76bda
parent9ad94c126aacd7f5c54632430870fa5308830e45
[clang][cli] Parse HeaderSearch options separately

This patch moves parsing of header search options from `parseSimpleArgs` back to `ParseHeaderSearchArgs` where they originally were.

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.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D94802
clang/include/clang/Driver/Options.td
clang/lib/Frontend/CompilerInvocation.cpp