Skip to content

rule-3 of comment alignment should not work for #endif's #1287

Closed

Description

@mihaipopescu

Expected versus output diff:

diff --git "a/C:\\work\\external\\uncrustify\\tests\\output\\staging\\60030-UNI-21727.cpp" "b/C:\\work\\external\\uncrustify\\tests\\results\\staging\\60030-UNI-21727.cpp"
index c2b6711..645ea21 100644
--- "a/C:\\work\\external\\uncrustify\\tests\\output\\staging\\60030-UNI-21727.cpp"
+++ "b/C:\\work\\external\\uncrustify\\tests\\results\\staging\\60030-UNI-21727.cpp"
@@ -1,10 +1,10 @@
 void foo()
 {
 #if defined(SUPPORT_FEATURE)
     bar();
 #endif // SUPPORT_FEATURE
-    // Handle error
+       // Handle error
     if (error != 0)
     {
     }
 }

Debug support files:

60030-UNI-21727.cpp
60030-UNI-21727.cpp.log
60030-UNI-21727.cpp.unc
Uncrustify.Cpp.cfg
UNI-21727.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. mihaipopescu commented on Aug 24, 2017

    @mihaipopescu
    CollaboratorAuthor

    This regression was introduced with #1134.

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

    @gmaurel
    Collaborator

    Fixed 927e4a8, Dec 5 14:54:30 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