[all-commits] [llvm/llvm-project] 4f36ad: [Clang] Fix crash when -header-include-filtering i...

Bob Wilson via All-commits all-commits at lists.llvm.org
Wed Apr 23 16:09:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f36ada1e205df08ad4377df88729f8defb36558
      https://github.com/llvm/llvm-project/commit/4f36ada1e205df08ad4377df88729f8defb36558
  Author: Bob Wilson <bob.wilson at apple.com>
  Date:   2025-04-23 (Wed, 23 Apr 2025)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Preprocessor/print-header-json.c
    M clang/tools/driver/driver.cpp

  Log Message:
  -----------
  [Clang] Fix crash when -header-include-filtering is not specified (#136232)

If you specify -header-include-format=json, the only filtering option
currently supported is -header-include-filtering=only-direct-system. If
you specify some other filtering option, Clang gives an error message.
But, if you do not specify the filtering option at all, Clang crashes
when producing the error message, since it tries to get the value of the
unused option.



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