Skip to content

Extra indentation after line with multiple assignments #1277

Closed

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.

Activity

  1. CDanU commented on Jul 14, 2017

    @CDanU
    Collaborator

    min cfg

    # Uncrustify-0.65-89-476df4d6
    input_tab_size                  = 4
    indent_columns                  = 4
    indent_with_tabs                = 0
    indent_align_assign             = false
    # option(s) with 'not default' value: 4
    #
  2. mihaipopescu commented on Jul 18, 2017

    @mihaipopescu
    CollaboratorAuthor

    I should really insert option_reducer script in the pipeline :)

  3. added a commit that references this issue on Oct 25, 2017
  4. gmaurel commented on Jan 24, 2018

    @gmaurel
    Collaborator

    Fixed at 2c412d8, Dec 17 18:33:16 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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