[llvm-bugs] [Bug 30770] New: clang-format transtform "operator< <T, T>" into "operator<<T, T>"

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 23 07:16:10 PDT 2016


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

            Bug ID: 30770
           Summary: clang-format transtform "operator< <T,T>" into
                    "operator<<T,T>"
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Running clang-format in

struct foo {};
template <typename T, typename U> bool operator<(const foo &X, const int &Y) {
  return false;
}
template <typename Func> void bar2(Func Comp) {}
template <typename T> void bar(const T &V) { bar2(operator< <T, T>); }
void f() { bar(2); }

causes it to not compile as operator< is converted into operator<<

-- 
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/20161023/1795a748/attachment.html>


More information about the llvm-bugs mailing list