<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add clang-format C# language support"
   href="https://bugs.llvm.org/show_bug.cgi?id=40850">40850</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add clang-format C# language support
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Formatter
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mydeveloperday@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>