[LLVMbugs] [Bug 14686] New: Formatting inconsistently adds spaces for operator overloading functions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 21 10:29:19 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14686

             Bug #: 14686
           Summary: Formatting inconsistently adds spaces for operator
                    overloading functions
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Currently, operator==, operator!=, operator<=, operator>= all become "operator
== " etc (with spaces on both sides of the operator).

"operator>(" becomes "operator> (" (just a trailing space)

"operator*" becomes "operator *" (just a leading space). Same for "operator&".

operator< remains unchanged.

These should all be formatted consistently; ideally without adding spaces
before or after the operators. (...but "operator bool()" should keep its space
between operator and bool.)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list