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

             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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to