[clang] clang-format: Add IndentGotoLabelsToCurrentScope option (PR #166730)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 6 12:21:59 PST 2025


================
@@ -1987,6 +1989,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
     // TODO: enable once decided, in particular re disabling bin packing.
     // https://google.github.io/styleguide/jsguide.html#features-arrays-trailing-comma
     // GoogleStyle.InsertTrailingCommas = FormatStyle::TCS_Wrapped;
+    GoogleStyle.IndentGotoLabelsToCurrentScope = false;
----------------
HazardyKnusperkeks wrote:

This is not necessary, it is based on `LLVMStyle`.

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


More information about the cfe-commits mailing list