[llvm-bugs] [Bug 25862] New: AlignConsecutiveAssignments fail on operator=

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 17 04:26:55 PST 2015


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

            Bug ID: 25862
           Summary: AlignConsecutiveAssignments fail on operator=
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jfrederich at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

// wrong formatted:
template <typename T, typename R>
VBiIterator& operator=(const VBiIterator<T, R>& other) {
  mIterator          = other.Iterator();
                    ^^^ that's wrong!
  return *this;
}

// well formatted:
template <typename T, typename R>
VBiIterator& operator=(const VBiIterator<T, R>& other) {
  mIterator = other.Iterator();
  return *this;
}

-- 
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/20151217/bebd03b2/attachment.html>


More information about the llvm-bugs mailing list