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: unassignedclangb...@nondot.org
          Reporter: dr...@jwdt.org
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to