diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-01-13 22:32:50 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-01-13 22:32:50 +0000 |
commit | ed50166b6b552a3419f75142776296c20cb75992 (patch) | |
tree | 5984eb28d9b6271bc040f0095fb8c1527087f41c /clang/unittests/Format/FormatTestJava.cpp | |
parent | e5dbcb7fd0aaf48ddc3bed416eec42257b8d48b6 (diff) | |
download | llvm-ed50166b6b552a3419f75142776296c20cb75992.zip llvm-ed50166b6b552a3419f75142776296c20cb75992.tar.gz llvm-ed50166b6b552a3419f75142776296c20cb75992.tar.bz2 |
clang-format: [Java] Detect `native` keyword.
Before:
public native<X> Foo foo();
After:
public native <X> Foo foo();
llvm-svn: 225839
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJava.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJava.cpp b/clang/unittests/Format/FormatTestJava.cpp index b187206..3c7cf32 100644 --- a/clang/unittests/Format/FormatTestJava.cpp +++ b/clang/unittests/Format/FormatTestJava.cpp @@ -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);"); |