================
@@ -120,7 +120,14 @@ class LevelIndentTracker {
   int getIndentOffset(const AnnotatedLine &Line) {
     if (Style.isJava() || Style.isJavaScript() || Style.isCSharp())
       return 0;
+
     const auto &RootToken = *Line.First;
+
+    if (Style.IndentGotoLabels == FormatStyle::IGLS_HalfIndent &&
+        RootToken.Next != NULL && RootToken.Next->is(TT_GotoLabelColon)) {
----------------
Ezlanding1 wrote:

It also seems like your suggested change causes crashes. Perhaps you meant 
`RootToken.Next` rather than `!RootToken.Next`?

https://github.com/llvm/llvm-project/pull/180109
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to