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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to