[clang] [clang-format] Reorder TokenAnnotator::canBreakBefore (PR #119044)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 9 08:18:04 PST 2024
================
@@ -6105,6 +6105,33 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line,
return false;
}
+ // We only break before r_brace if there was a corresponding break before
+ // the l_brace, which is tracked by BreakBeforeClosingBrace.
----------------
gedare wrote:
Actually, this comment is outdated. I've pushed your suggestion with a little bit more correction.
https://github.com/llvm/llvm-project/pull/119044
More information about the cfe-commits
mailing list