Skip to content

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

@mihaipopescu

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.

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