[all-commits] [llvm/llvm-project] 225ccf: [clang][cli] Command line round-trip for HeaderSea...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Feb 4 01:18:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 225ccf0c50a8d4e03b51f2f09a8e8776328363d8
      https://github.com/llvm/llvm-project/commit/225ccf0c50a8d4e03b51f2f09a8e8776328363d8
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Frontend/CompilerInvocation.h
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/Frontend/round-trip-cc1-args.c
    M clang/tools/driver/cc1_main.cpp
    M llvm/include/llvm/Option/ArgList.h
    M llvm/lib/Option/ArgList.cpp

  Log Message:
  -----------
  [clang][cli] Command line round-trip for HeaderSearch options

This patch implements generation of remaining header search arguments.
It's done manually in C++ as opposed to TableGen, because we need the flexibility and don't anticipate reuse.

This patch also tests the generation of header search options via a round-trip. This way, the code gets exercised whenever Clang is built and tested in asserts mode. All `check-clang` tests pass.

Reviewed By: dexonsmith

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




More information about the All-commits mailing list