[PATCH] D134270: [clang] [Driver] Support multiple configuration files
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 20 02:25:41 PDT 2022
mgorny created this revision.
mgorny added reviewers: sepavloff, MaskRay.
Herald added a subscriber: StephenFan.
Herald added a project: All.
mgorny requested review of this revision.
Support specifying multiple configuration files via multiple `--config`
options. When multiple files are specified, the options from subsequent
files are appended to the options from the initial file.
While at it, remove the incorrect assertion about CfgFileName being
non-empty. It can be empty if `--config ""` is passed, and it makes
sense to report it as non-existing file rather than crash.
https://reviews.llvm.org/D134270
Files:
clang/include/clang/Driver/Driver.h
clang/lib/Driver/Driver.cpp
clang/test/Driver/config-file-errs.c
clang/test/Driver/config-file.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134270.461519.patch
Type: text/x-patch
Size: 11110 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220920/aaea1c06/attachment-0001.bin>
More information about the cfe-commits
mailing list