[all-commits] [llvm/llvm-project] b46f92: [clang-format] Improve handling of C# attributes

Jonathan B Coe via All-commits all-commits at lists.llvm.org
Tue Feb 11 04:03:16 PST 2020


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

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

  Log Message:
  -----------
  [clang-format] Improve handling of C# attributes

Summary:
C# attributes can appear on classes and methods, in which case they should go on their own line, or on method parameters in which case
they should be left inline.

Reviewers: krasimir, MyDeveloperDay

Reviewed By: MyDeveloperDay

Subscribers: klimek

Tags: #clang-format

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




More information about the All-commits mailing list