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

            Bug ID: 32015
           Summary: Feature request: Option to auto-align method names in
                    header files
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Out projects use method names alignment which seems impossible with current
clang-format. The code looks like this:

class SimpleClass
{
public:
                             SimpleClass();
    explicit                 SimpleClass( const String& str );
    virtual                  ~SimpleClass();

    virtual void             DoSomething();

    virtual String           GetSomeText();

    virtual std::vector<int> GetNumbers();

    // Please note that return type is too long here and is not accounted in
alignments.
    // Usually we use columns 25, 29, 33 for alignment.
    virtual const std::unordered_map<String, String>& GetSomeMap();
};

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