[all-commits] [llvm/llvm-project] ba3484: [clang-format/java] format multiple qualified anno...

Nico Weber via All-commits all-commits at lists.llvm.org
Fri Jan 3 09:12:44 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ba3484c051b62a662c555200f4a03b2e8df8e094
      https://github.com/llvm/llvm-project/commit/ba3484c051b62a662c555200f4a03b2e8df8e094
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-01-03 (Fri, 03 Jan 2020)

  Changed paths:
    M clang/lib/Format/FormatToken.h
    M clang/unittests/Format/FormatTestJava.cpp

  Log Message:
  -----------
  [clang-format/java] format multiple qualified annotations on one declaration better

Before:
    class Foo {
      @CommandLineFlags
          .Add
          @Features.foo
          public void test() {}
    }

Now:
    class Foo {
        @Features.foo
        @CommandLineFlags.Add
        public void test() { }
    }

See also https://crbug.com/1034115




More information about the All-commits mailing list