[all-commits] [llvm/llvm-project] 8a774c: [clang] [Driver] Support multiple configuration files

Michał Górny via All-commits all-commits at lists.llvm.org
Wed Sep 21 04:14:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a774c35e9f8c6a200a8f4d00aae909840f5004a
      https://github.com/llvm/llvm-project/commit/8a774c35e9f8c6a200a8f4d00aae909840f5004a
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-09-21 (Wed, 21 Sep 2022)

  Changed paths:
    M clang/docs/UsersManual.rst
    M clang/include/clang/Driver/Driver.h
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/config-file-errs.c
    M clang/test/Driver/config-file.c
    M clang/test/Driver/config-file3.c

  Log Message:
  -----------
  [clang] [Driver] Support multiple configuration files

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.

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




More information about the All-commits mailing list