[llvm-bugs] [Bug 48916] New: PointerAlignment not working when using C++20 init-statement in for loop

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 27 22:30:46 PST 2021


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

            Bug ID: 48916
           Summary: PointerAlignment not working when using C++20
                    init-statement in for loop
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hewillk at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Configuration of clang-format:
PointerAlignment: Left

int main() {
  for (auto a = 0, b = 0; const auto &c : {1, 2, 3})
    ;
}

expected:
int main() {
  for (auto a = 0, b = 0; const auto& c : {1, 2, 3})
    ;
}

-- 
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/20210128/e7ab7d45/attachment.html>


More information about the llvm-bugs mailing list