[llvm-bugs] [Bug 45357] New: clang-format: unexpected change on operator

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 30 07:28:41 PDT 2020


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

            Bug ID: 45357
           Summary: clang-format: unexpected change on operator
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: regression
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
        Depends on: 45309

with:
class UniquePtrGetterAddRefs {
  operator void **() { return reinterpret_cast<void **>(&mPtrStorage); }
}

with clang-format 10.0

$ clang-format-10 foo.cpp 
class UniquePtrGetterAddRefs {
  operator void * *() { return reinterpret_cast<void **>(&mPtrStorage); }
}

I don't think it is what we want!


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=45309
[Bug 45309] [meta] 10.0.1 Release Blockers
-- 
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/20200330/9794ac15/attachment-0001.html>


More information about the llvm-bugs mailing list