[all-commits] [llvm/llvm-project] 4fb81f: [Frontend][PCH]-Add support for ignoring PCH optio...

MaggieYingYi via All-commits all-commits at lists.llvm.org
Tue Jun 10 04:53:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4fb81f11cea0fce9f1f5409fcd55ae3aba70d368
      https://github.com/llvm/llvm-project/commit/4fb81f11cea0fce9f1f5409fcd55ae3aba70d368
  Author: MaggieYingYi <29144504+MaggieYingYi at users.noreply.github.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/docs/UsersManual.rst
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/ignored-pch.cpp
    A clang/test/PCH/Inputs/ignored-pch.h
    A clang/test/PCH/ignored-pch.c

  Log Message:
  -----------
  [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (#142409)

Visual Studio has an argument to ignore all PCH related switches. clang-cl has also support option /Y-. Having the same option in clang would be helpful. This commit is to add support for ignoring PCH options (-ignore-pch).

The commit includes:
    1. Implement -ignore-pch as a Driver option.
    2. Add a Driver test and a PCH test.
    3. Add a section of -ignore-pch to user manual.
    4. Add a release note for the new option '-ignore-pch'.

Code reviewed by: Matheus Izvekov <mizvekov at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list