[llvm-bugs] [Bug 37704] New: Add option to break between class name and member name

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 6 09:20:14 PDT 2018


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

            Bug ID: 37704
           Summary: Add option to break between class name and member name
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: matthew.woehlke at kitware.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

I'm having a number of issues trying to get clang-format to behave reasonably
on
https://github.com/Kitware/kwiver/blob/303a11ebb43c020ab8e48b6ef70407b460dba46b/vital/range/filter.h,
using
https://gist.github.com/mwoehlke-kitware/d8ef9466df5096a035059938aef2948d.

For this RFE, the problem is with how we declare member functions:

  void
  foo
  ::foo()
  {
  }

Specifically, we want to enforce a break between the class name and the member
name (in this case, with the `::` attached to the member name, but that should
probably be an option). AFAICT there is no option to do this, and clang-format
insists on removing the break, which is not desired.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180606/3614b111/attachment.html>


More information about the llvm-bugs mailing list