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

            Bug ID: 32016
           Summary: When adding a comment at the end of a return type
                    declaration, the function name is incorrectly indented
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

template<typename T>  // Templates on own line.
static int            // Return type on own line for top-level functions.
MyFunction(int a)

is converted by clang-format to
template<typename T> // Templates on own line.
static int           // Return type on own line for top-level functions.
  MyFunction(int a)

note the "  " before "MyFunction"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to