HomePhabricator

[clang][cli] NFC: Decrease the scope of ParseLangArgs parameters

Authored by jansvoboda11 on Jan 13 2021, 11:26 PM.

Description

[clang][cli] NFC: Decrease the scope of ParseLangArgs parameters

Instead of passing the whole TargetOptions and PreprocessorOptions to ParseLangArgs give it only the necessary members.
This makes tracking the dependencies between various parsers and option groups easier.

Reviewed By: Bigcheese

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