[LLVMbugs] [Bug 14793] New: Formatting: Useless space before ampersand

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 4 10:06:26 PST 2013


             Bug #: 14793
           Summary: Formatting: Useless space before ampersand
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grosser at fim.uni-passau.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 9805
  --> http://llvm.org/bugs/attachment.cgi?id=9805
Test case

clang-format formats the code as follows:

#include <map>                                                                  

void foo() {                                                                    
  int R;                                                                        
  std::map<int *, int> InvalidRegions;                                          
  InvalidRegions[ &R] = 0;
             //  ^ This space is ugly

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