Skip to content

Extra indentation after line with multiple assignments #1277

@mihaipopescu

Description

@mihaipopescu

Expected versus output diff:

diff --git "a/C:\\work\\external\\uncrustify\\tests\\output\\staging\\60025-UNI-19894.cpp" "b/C:\\work\\external\\uncrustify\\tests\\results\\staging\\60025-UNI-19894.cpp"
index 2d7e481..53d653f 100644
--- "a/C:\\work\\external\\uncrustify\\tests\\output\\staging\\60025-UNI-19894.cpp"
+++ "b/C:\\work\\external\\uncrustify\\tests\\results\\staging\\60025-UNI-19894.cpp"
@@ -1,16 +1,16 @@
 //It is applying double indentation
 m_ApplicationView = AppC::ApplicationView::GetForCurrentView();
 m_ViewConsolidateEvtToken = m_ApplicationView->Consolidated +=
-    ref new AppC::TypedEventHandler<AppC::ApplicationView^, AppC::ApplicationViewConsolidatedEventArgs^>(this, &FrameworkView::InternalOnViewConsolidated);
+        ref new AppC::TypedEventHandler<AppC::ApplicationView^, AppC::ApplicationViewConsolidatedEventArgs^>(this, &FrameworkView::InternalOnViewConsolidated);
 
 m_WindowActivatedEvtToken = m_CoreWindow->Activated +=
-    ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::WindowActivatedEventArgs^>(this, &FrameworkView::InternalOnWindowActivated);
+        ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::WindowActivatedEventArgs^>(this, &FrameworkView::InternalOnWindowActivated);
 
 m_SizeChangedEvtToken = m_CoreWindow->SizeChanged +=
-    ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::WindowSizeChangedEventArgs^>(this, &FrameworkView::InternalOnWindowSizeChanged);
+        ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::WindowSizeChangedEventArgs^>(this, &FrameworkView::InternalOnWindowSizeChanged);
 
 m_VisibilityChangedEvtToken = m_CoreWindow->VisibilityChanged +=
-    ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::VisibilityChangedEventArgs^>(this, &FrameworkView::InternalOnWindowVisibilityChanged);
+        ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::VisibilityChangedEventArgs^>(this, &FrameworkView::InternalOnWindowVisibilityChanged);
 
 m_WindowClosedEvtToken = m_CoreWindow->Closed +=
-    ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::CoreWindowEventArgs^>(this, &FrameworkView::InternalOnWindowClosed);
+        ref new AppC::TypedEventHandler<AppC::CoreWindow^, AppC::CoreWindowEventArgs^>(this, &FrameworkView::InternalOnWindowClosed);

Debug support files:

60025-UNI-19894.cpp
60025-UNI-19894.cpp.log
60025-UNI-19894.cpp.unc
Uncrustify.Cpp.cfg
UNI-19894.cpp

Disclaimer:

Note: This is a generated issue from our internal issue tracker.
Expect a dry description which could be insufficient to properly understand the issue.
On the other hand, the support files should be sufficient to easily reproduce and debug the issue,
but please comment if it's still unclear and I will get back with clarifications.
See main discussion thread here #1223.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions