[llvm-bugs] [Bug 34220] New: Add option for const-before and const-after (or const-left/const-right)

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 17 06:28:58 PDT 2017


            Bug ID: 34220
           Summary: Add option for const-before and const-after (or
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: von.llvm.org at martin-ueding.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

In the codebase that I work on, the existing code is const-left, so `const T`.
There now is the need to have `T * const*` and also `T const* const*`,
therefore I prefer the const-right now.

Would it be possible in the realm of clang-format to offer an additional option
which could consistently change the placement of the outermost `const` to the
left or right of the outermost type?

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/20170817/eee7dfb0/attachment-0001.html>

More information about the llvm-bugs mailing list