[llvm-bugs] [Bug 40953] New: Single-line version of // clang-format off

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 4 05:58:01 PST 2019


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

            Bug ID: 40953
           Summary: Single-line version of // clang-format off
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: drohr at jwdt.org
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

With the current commands // clang-format off and // clang-format on, it
involves some overhead to disable the formatting only on a single line of code,
since I need at least a second line containing only the command // clang-format
on

I would suggest to add another special comment // clang-format ignore-line,
which leaves the current line of code unchanged, except that it indents it to
the current brace level.

-- 
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/20190304/50d95ffa/attachment.html>


More information about the llvm-bugs mailing list