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

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 18 01:03:10 PDT 2024


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

I assume this is true by default because it was true at line 1023 (thats ok just wanted to check)

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


More information about the cfe-commits mailing list