[all-commits] [llvm/llvm-project] 47bdf5: [clang-format] Break on AfterColon only if not fol...
Owen via All-commits
all-commits at lists.llvm.org
Mon Jul 4 12:35:10 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 47bdf53a5dbaf16e1080d1cad8f3cc67edaad960
https://github.com/llvm/llvm-project/commit/47bdf53a5dbaf16e1080d1cad8f3cc67edaad960
Author: owenca <owenpiano at gmail.com>
Date: 2022-07-04 (Mon, 04 Jul 2022)
Changed paths:
M clang/lib/Format/ContinuationIndenter.cpp
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Break on AfterColon only if not followed by comment
Break after a constructor initializer colon only if it's not followed by a
comment on the same line.
Fixes #41128.
Fixes #43246.
Differential Revision: https://reviews.llvm.org/D129057
More information about the All-commits
mailing list