https://bugs.llvm.org/show_bug.cgi?id=47589

            Bug ID: 47589
           Summary: clang-format-11: regression in aligned comments
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: sylves...@debian.org
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
            Blocks: 46725

With this simple code:
----
namespace mozilla {

#define IPV6_SCOPE_GLOBAL 0      // Global scope.
#define IPV6_SCOPE_LINKLOCAL 1   // Link-local scope.
#define IPV6_SCOPE_SITELOCAL 2   // Site-local scope (deprecated).
#define IPV6_SCOPE_UNIQUELOCAL 3 // Unique local
#define IPV6_SCOPE_NODELOCAL 4   // Loopback

} // namespace mozilla
----

clang-format-10 left it intact

With clang-format-11, the output is:
----
% clang-format-11 IPv6Utils.h
namespace mozilla {

#define IPV6_SCOPE_GLOBAL 0 // Global scope.
#define IPV6_SCOPE_LINKLOCAL 1 // Link-local scope.
#define IPV6_SCOPE_SITELOCAL 2 // Site-local scope (deprecated).
#define IPV6_SCOPE_UNIQUELOCAL 3 // Unique local
#define IPV6_SCOPE_NODELOCAL 4 // Loopback

} // namespace mozilla
----

which is a significant regression for clang-format-11

Looking at the 11 release notes,
https://prereleases.llvm.org/11.0.0/rc2/tools/clang/docs/ReleaseNotes.html
I haven't seen anything directly related.


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=46725
[Bug 46725] [meta] 11.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to