[llvm-bugs] [Bug 26177] New: Add option to disable formatting of preprocessor

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 16 11:22:50 PST 2016


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

            Bug ID: 26177
           Summary: Add option to disable formatting of preprocessor
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at Alexander.Shukaev.name
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

There are no options to control the style of preprocessor formatting.  I don't
know whether you have those in your roadmap but do I understand that adding
those might be a lot of work.  As a result, I think one good solution is to
provide an option to disable formatting of preprocessor altogether.  This one
should be easy to add since it is trivial to distinguish preprocessor from real
code.  Of course 'clang-format on' and 'clang-format off' directives are an
option but clearly spamming those across the whole project just around
preprocessor is tedious and ugly.  Looking forward to your feedback.

-- 
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/20160116/e74185d4/attachment.html>


More information about the llvm-bugs mailing list