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

            Bug ID: 40850
           Summary: Add clang-format C# language support
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: mydeveloper...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

This enhancement is to add support for clang-format to be able to parse C#
source code files and format using existing clang-format rules

clang-format currently butchers C# often breaking it from compiling, as a
primarily C syntax language similar to java in constructs it should be possible
for clang-format to be setup to format C# in much the same way as it handles
Java

This would allow code bases with a mixture of C# and C++ code to use a common
style file between the two and automated format on save in visual studio can be
used to keep code conforming.

Formatting by default should fallback to some sort of Microsoft .NET Core
equivalent style to minimize the amount of flux on newly formatted code or the
need for users to discover the Microsoft style.

Some additional consideration will be required to handle, verbatim and
interpolated strings which are outside of currently supported string literal
styles handled by the lexer

In the future additional formatting styles for constructs like set;get could be
added.

-- 
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