[llvm-bugs] [Bug 32499] New: [java] space is added before :: in Java 8 method references sometimes

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 3 00:51:25 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32499

            Bug ID: 32499
           Summary: [java] space is added before :: in Java 8 method
                    references sometimes
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jensfischer95 at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

public class Foo {
  public Foo() {
    Foo::bar;
    this::bar;
    String[]::new;
  }
}

becomes:

public class Foo {
  public Foo() {
    Foo::bar;
    this ::bar;
    String[] ::new;
  }
}

The simple `Foo::bar` is handled as expected, but a space is incorrectly added
after the `this` keyword and after array brackets.

clang-format version: 5.0.0 (1cd6beccb6bb876db3bbfa763e8979)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170403/68c145b4/attachment.html>


More information about the llvm-bugs mailing list