[LLVMbugs] [Bug 14699] New: Formatting should have an option to keep "template <...>" on its own line

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 22 16:47:21 PST 2012


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

             Bug #: 14699
           Summary: Formatting should have an option to keep "template
                    <...>" on its own line
           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


In clang, it looks like it's more common to say

  template <class T>
  class AwesomeType {
    ...
  };

than

  template <class T> class AwesomeType {
    ...
  };


There should probably be an option to pick between these styles, and llvm
should probably default to the "template <...> on its own line" style. (For
class definitions only, not for declarations I suppose.)

-- 
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