[all-commits] [llvm/llvm-project] 63395c: [clang-format] CSharp don't allow there not to be ...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Mon Apr 17 11:40:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63395cb0b69dee69ec5d5d0d552482c607861178
      https://github.com/llvm/llvm-project/commit/63395cb0b69dee69ec5d5d0d552482c607861178
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2023-04-17 (Mon, 17 Apr 2023)

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

  Log Message:
  -----------
  [clang-format] CSharp don't allow there not to be a space between `is` and `[`

as `is` is a keyword in C# ensure there is always a space before the `[` regardless of `SpaceBeforeSquareBrackets` setting

Fixes: #61965

https://github.com/llvm/llvm-project/issues/61965

Reviewed By: owenpan, HazardyKnusperkeks

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




More information about the All-commits mailing list