[llvm-bugs] [Bug 51183] New: Regression in continuation indent if `AlignConsecutiveAssignments: Consecutive`

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 23 08:56:08 PDT 2021


            Bug ID: 51183
           Summary: Regression in continuation indent if
                    `AlignConsecutiveAssignments: Consecutive`
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alexey.utkin at jetbrains.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

There is regression after the fix 
[clang-format] Fix aligning with linebreaks


   AlignConsecutiveAssignments: Consecutive

Additional two spaces before `=` were added to indentation while formatting

void SomeFunc()
    using DcgmNs::Timelib::FromLegacyTimestamp;
    using DcgmNs::Timelib::ToLegacyTimestamp;
    using DcgmNs::Utils::GetMaxAge;
    using namespace std::chrono;
    // check the continuation indent: 6 instead of 4
    newWatcher.maxAgeUsec   = ToLegacyTimestamp(GetMaxAge(
seconds(std::uint64_t(maxSampleAge)), maxKeepSamples));
    newWatcher.isSubscribed = subscribeForUpdates ? 1 : 0;

Here is original problem with attachments
CPP-25899 CLion formatting does not match what clang-format produces

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210723/db6bc39b/attachment.html>

More information about the llvm-bugs mailing list