[llvm-bugs] [Bug 40850] New: Add clang-format C# language support
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Feb 24 23:58:58 PST 2019
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: unassignedclangbugs at nondot.org
Reporter: mydeveloperday at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190225/8d1dc3c4/attachment-0001.html>
More information about the llvm-bugs
mailing list