[all-commits] [llvm/llvm-project] 2e7fbb: [clang-format] Fix a bug in annotating braces (#14...

Owen Pan via All-commits all-commits at lists.llvm.org
Sat Jun 14 00:22:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e7fbb94bc268d37996408a525781961989d8627
      https://github.com/llvm/llvm-project/commit/2e7fbb94bc268d37996408a525781961989d8627
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2025-06-14 (Sat, 14 Jun 2025)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  -----------
  [clang-format] Fix a bug in annotating braces (#144095)

Stop looking for function decls after hitting a BK_BracedInit brace.

Fixes #144057.



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