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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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

if

   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(
          FromLegacyTimestamp<milliseconds>(monitorFrequencyUsec),
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
https://youtrack.jetbrains.com/issue/CPP-25899

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to