[clang][cli] NFC: Promote ParseLangArgs and ParseCodeGenArgs to members
authorJan Svoboda <jan_svoboda@apple.com>
Fri, 15 Jan 2021 14:44:09 +0000 (15:44 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Fri, 15 Jan 2021 15:41:34 +0000 (16:41 +0100)
commit1744f4c676411ebd2e38afd5a6b56e5dd533c6ac
tree43464eea08bd5e648b49058d85d479f63447f430
parenta7dcd3aeb0fb58ad774bc89428ed6c925f31f8aa
[clang][cli] NFC: Promote ParseLangArgs and ParseCodeGenArgs to members

This patch promotes `ParseLangArgs` and `ParseCodeGenArgs` to members of `CompilerInvocation`. That will be useful in the following patch D94682, where we need to access protected members of `LangOptions` and `CodeGenOptions`. Both of those classes already have `friend CompilerInvocation`.

This is cleaner than keeping those functions freestanding and having to specify the exact signature of both in extra `friend` declarations.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D94681
clang/include/clang/Frontend/CompilerInvocation.h
clang/lib/Frontend/CompilerInvocation.cpp