[all-commits] [llvm/llvm-project] cac677: [clang-format] Fix crashes when the macro expansio...

天音あめ via All-commits all-commits at lists.llvm.org
Sat Dec 21 22:21:48 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cac6777ca14e162eb6e97e20da266802846ab953
      https://github.com/llvm/llvm-project/commit/cac6777ca14e162eb6e97e20da266802846ab953
  Author: 天音あめ <i at amane-a.me>
  Date:   2024-12-21 (Sat, 21 Dec 2024)

  Changed paths:
    M clang/lib/Format/MacroExpander.cpp
    M clang/unittests/Format/MacroCallReconstructorTest.cpp

  Log Message:
  -----------
  [clang-format] Fix crashes when the macro expansion is empty (#119428)

An empty expansion should be valid, like `echo 'A()' | clang-format
--style='{Macros: [A(x)=x]}'`.

Fixes #119258.



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