[all-commits] [llvm/llvm-project] 7dfe0c: [clang-format] Recognize C# named argument colons ...

Jonathan B Coe via All-commits all-commits at lists.llvm.org
Thu Feb 27 05:51:53 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7dfe0cc7f5765dc729685a0aa468cdf54a265a11
      https://github.com/llvm/llvm-project/commit/7dfe0cc7f5765dc729685a0aa468cdf54a265a11
  Author: Jonathan Coe <jbcoe at google.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  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] Recognize C# named argument colons as a token type

Summary:
No longer merge 'name' and ':' into a single token.

Ensure that line breaks cannot be placed before or after a named-argument colon.

Ensure that no space is inserted before a named-argument colon.

Reviewers: krasimir

Reviewed By: krasimir

Subscribers: cfe-commits, MyDeveloperDay

Tags: #clang-format, #clang

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




More information about the All-commits mailing list