[all-commits] [llvm/llvm-project] 46bf67: [clang-format] Reorder TokenAnnotator::canBreakBef...
Gedare Bloom via All-commits
all-commits at lists.llvm.org
Mon Dec 9 21:05:49 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 46bf67d8faa6a7d75561fe03b5b871ec4b4a9c1d
https://github.com/llvm/llvm-project/commit/46bf67d8faa6a7d75561fe03b5b871ec4b4a9c1d
Author: Gedare Bloom <gedare at rtems.org>
Date: 2024-12-09 (Mon, 09 Dec 2024)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Reorder TokenAnnotator::canBreakBefore (#119044)
Move the checks related to breaking before right braces and right parens
earlier to avoid conflicting checks that prevent breaking based on the
left-hand token. This allows properly formatting declarations with
pointers and references at a minimum.
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