[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 18 22:28:23 PDT 2025


================
@@ -1753,7 +1753,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
   GoogleStyle.AttributeMacros.push_back("absl_nullable");
   GoogleStyle.AttributeMacros.push_back("absl_nullability_unknown");
   GoogleStyle.BreakTemplateDeclarations = FormatStyle::BTDS_Yes;
-  GoogleStyle.DerivePointerAlignment = true;
+  GoogleStyle.DerivePointerAlignment = false;
----------------
owenca wrote:

I'd just delete the line as `false` is the default.

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


More information about the cfe-commits mailing list