[all-commits] [llvm/llvm-project] a437be: [clang-format] Add more support for C# 8 nullables

Marek Kurdej via All-commits all-commits at lists.llvm.org
Thu May 6 02:59:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a437befa8f8580b3b4f2226b208a05da078c8b20
      https://github.com/llvm/llvm-project/commit/a437befa8f8580b3b4f2226b208a05da078c8b20
  Author: Eliza Velasquez <exv at google.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M clang/lib/Format/FormatToken.h
    M clang/lib/Format/FormatTokenLexer.cpp
    M clang/lib/Format/FormatTokenLexer.h
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTestCSharp.cpp

  Log Message:
  -----------
  [clang-format] Add more support for C# 8 nullables

This adds support for the null-coalescing assignment and null-forgiving
operators.

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-coalescing-operator

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-forgiving

Reviewed By: krasimir, curdeius

Differential Revision: https://reviews.llvm.org/D101702




More information about the All-commits mailing list