[all-commits] [llvm/llvm-project] b934be: [Support] Class for response file expansion (NFC)

Serge Pavlov via All-commits all-commits at lists.llvm.org
Thu Sep 29 05:16:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b934be2c059a99351d08069bb80155e49f047b6e
      https://github.com/llvm/llvm-project/commit/b934be2c059a99351d08069bb80155e49f047b6e
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Tooling/ExpandResponseFilesCompilationDatabase.cpp
    M clang/tools/driver/driver.cpp
    M flang/tools/flang-driver/driver.cpp
    M llvm/include/llvm/Support/CommandLine.h
    M llvm/include/llvm/Support/StringSaver.h
    M llvm/lib/Support/CommandLine.cpp
    M llvm/unittests/Support/CommandLineTest.cpp

  Log Message:
  -----------
  [Support] Class for response file expansion (NFC)

Functions that implement expansion of response and config files depend
on many options, which are passes as arguments. Extending the expansion
requires new options, it in turn causes changing calls in various places
making them even more bulky.

This change introduces a class ExpansionContext, which represents set of
options that control the expansion. Its methods implements expansion of
responce files including config files. It makes extending the expansion
easier.

No functional changes.

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




More information about the All-commits mailing list