clang-format: [Java] Detect native keyword.

Before:
  public native<X> Foo foo();

After:
  public native <X> Foo foo();

llvm-svn: 225839
This commit is contained in:
Nico Weber
2015-01-13 22:32:50 +00:00
parent e5dbcb7fd0
commit ed50166b6b
3 changed files with 5 additions and 1 deletions

View File

@@ -292,6 +292,7 @@ TEST_F(FormatTestJava, Generics) {
verifyFormat("protected <R> ArrayList<R> get() {}");
verifyFormat("private <R> ArrayList<R> get() {}");
verifyFormat("public static <R> ArrayList<R> get() {}");
verifyFormat("public static native <R> ArrayList<R> get();");
verifyFormat("public final <X> Foo foo() {}");
verifyFormat("public abstract <X> Foo foo();");
verifyFormat("<T extends B> T getInstance(Class<T> type);");