[clang] [clang-format] Add an option to control indentation of `export { ... }` (PR #110381)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 01:00:22 PST 2025


================
@@ -1522,6 +1523,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) {
   LLVMStyle.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Never;
   LLVMStyle.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_LogicalBlock;
   LLVMStyle.ExperimentalAutoDetectBinPacking = false;
+  LLVMStyle.ExportBlockIndentation = false;
----------------
mydeveloperday wrote:

doesn't clang-format currently by default indent the export, so shouldn't this be true? so we don't change any existing code that might like the indentation

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


More information about the cfe-commits mailing list