[clang] clang-format: Add AlignFunctionDeclarations attribute to AlignConsecutiveDeclarations (PR #108241)

Brad House via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 18 03:11:18 PDT 2024


================
@@ -1448,6 +1464,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) {
   LLVMStyle.AlignConsecutiveAssignments.PadOperators = true;
   LLVMStyle.AlignConsecutiveBitFields = {};
   LLVMStyle.AlignConsecutiveDeclarations = {};
+  LLVMStyle.AlignConsecutiveDeclarations.AlignFunctionDeclarations = true;
----------------
bradh352 wrote:

right, so the default behavior previously was true.  The new option technically just allows it to be set to false.  So we're keeping the prior behavior by default.

https://github.com/llvm/llvm-project/pull/108241


More information about the cfe-commits mailing list