[Frontend] give createInvocationFromCommandLine an options struct
authorSam McCall <sam.mccall@gmail.com>
Thu, 5 May 2022 00:15:24 +0000 (02:15 +0200)
committerSam McCall <sam.mccall@gmail.com>
Thu, 5 May 2022 13:12:07 +0000 (15:12 +0200)
commit40c13720a4b977d4347bbde53c52a4d0703823c2
tree294f1dcb52dfbd1b4b800a9f0275e5de6b3bbe98
parent99f31acfce338417fea3c14983d6f8fedc8ed043
[Frontend] give createInvocationFromCommandLine an options struct

It's accumulating way too many optional params (see D124970)

While here, improve the name and the documentation.

Differential Revision: https://reviews.llvm.org/D124971
clang-tools-extra/clangd/Compiler.cpp
clang/include/clang/Frontend/Utils.h
clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
clang/unittests/Frontend/UtilsTest.cpp