Lines Matching refs:verifyFormat

45   static void verifyFormat(  in verifyFormat()  function in clang::format::FormatTestJava
54 verifyFormat("someObject.and();"); in TEST_F()
58 verifyFormat("a[b >> 1] = (byte) (c() << 4);"); in TEST_F()
63 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n" in TEST_F()
67 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa instanceof\n" in TEST_F()
70 verifyFormat("return aaaaaaaaaaaaaaaaaaa instanceof bbbbbbbbbbbbbbbbbbbbbbb\n" in TEST_F()
75 verifyFormat("class SomeClass {\n" in TEST_F()
90 verifyFormat("public some.package.Type someFunction( // comment\n" in TEST_F()
95 verifyFormat("SomeClass.class.getName();"); in TEST_F()
96 verifyFormat("Class c = SomeClass.class;"); in TEST_F()
100 verifyFormat("public class SomeClass {\n" in TEST_F()
104 verifyFormat("public class A {\n" in TEST_F()
112 verifyFormat("public class A extends B.C {}"); in TEST_F()
114 verifyFormat("abstract class SomeClass\n" in TEST_F()
117 verifyFormat("abstract class SomeClass extends SomeOtherClass\n" in TEST_F()
120 verifyFormat("abstract class SomeClass\n" in TEST_F()
124 verifyFormat("abstract class SomeClass\n" in TEST_F()
129 verifyFormat("abstract class SomeClass\n" in TEST_F()
132 verifyFormat("@SomeAnnotation()\n" in TEST_F()
136 verifyFormat("@SomeAnnotation()\n" in TEST_F()
140 verifyFormat("interface SomeInterface<A> extends Foo, Bar {\n" in TEST_F()
144 verifyFormat("public interface SomeInterface {\n" in TEST_F()
149 verifyFormat("@interface SomeInterface {\n" in TEST_F()
153 verifyFormat("public @interface SomeInterface {\n" in TEST_F()
157 verifyFormat("class A {\n" in TEST_F()
163 verifyFormat("class A {\n" in TEST_F()
169 verifyFormat("return new A() {\n" in TEST_F()
174 verifyFormat("A a = new A() {\n" in TEST_F()
182 verifyFormat("enum SomeThing { ABC, CDE }"); in TEST_F()
183 verifyFormat("enum SomeThing {\n" in TEST_F()
187 verifyFormat("public class SomeClass {\n" in TEST_F()
191 verifyFormat("public class SomeClass implements SomeInterface {\n" in TEST_F()
195 verifyFormat("enum SomeThing {\n" in TEST_F()
200 verifyFormat("enum SomeThing {\n" in TEST_F()
202 verifyFormat("enum SomeThing {\n" in TEST_F()
207 verifyFormat("enum SomeThing {\n" in TEST_F()
212 verifyFormat("public enum SomeThing {\n" in TEST_F()
226 verifyFormat("private enum SomeEnum implements Foo<?, B> {\n" in TEST_F()
240 verifyFormat("public enum VeryLongEnum {\n" in TEST_F()
250 verifyFormat("new int[] {1, 2, 3, 4};"); in TEST_F()
251 verifyFormat("new int[] {\n" in TEST_F()
260 verifyFormat( in TEST_F()
267 verifyFormat("public void doSooooooooooooooooooooooooooomething()\n" in TEST_F()
269 verifyFormat("public void doSooooooooooooooooooooooooooomething()\n" in TEST_F()
274 verifyFormat("@Override\n" in TEST_F()
276 verifyFormat("@Override\n" in TEST_F()
279 verifyFormat("@Override // comment\n" in TEST_F()
282 verifyFormat("@java.lang.Override // comment\n" in TEST_F()
286 verifyFormat("@SuppressWarnings(value = \"unchecked\")\n" in TEST_F()
288 verifyFormat("@SuppressWarnings(value = \"unchecked\")\n" in TEST_F()
292 verifyFormat("DoSomething(new A() {\n" in TEST_F()
297 verifyFormat("void SomeFunction(@Nullable String something) {}"); in TEST_F()
298 verifyFormat("void SomeFunction(@org.llvm.Nullable String something) {}"); in TEST_F()
300 verifyFormat("@Partial @Mock DataLoader loader;"); in TEST_F()
301 verifyFormat("@Partial\n" in TEST_F()
305 verifyFormat("@SuppressWarnings(value = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\")\n" in TEST_F()
308 verifyFormat("@SomeAnnotation(\"With some really looooooooooooooong text\")\n" in TEST_F()
310 verifyFormat("@org.llvm.Qualified(\"With some really looooooooooong text\")\n" in TEST_F()
312 verifyFormat("@Mock\n" in TEST_F()
316 verifyFormat("@org.llvm.QualifiedMock\n" in TEST_F()
320 verifyFormat("@Test(a)\n" in TEST_F()
323 verifyFormat("@SomeAnnotation(\n" in TEST_F()
327 verifyFormat("@Test\n" in TEST_F()
331 verifyFormat("{\n" in TEST_F()
337 verifyFormat("@Annotation(\"Some\"\n" in TEST_F()
341 verifyFormat( in TEST_F()
351 verifyFormat("Iterable<?> a;"); in TEST_F()
352 verifyFormat("Iterable<?> a;"); in TEST_F()
353 verifyFormat("Iterable<? extends SomeObject> a;"); in TEST_F()
355 verifyFormat("A.<B>doSomething();"); in TEST_F()
356 verifyFormat("A.<B<C>>doSomething();"); in TEST_F()
357 verifyFormat("A.<B<C<D>>>doSomething();"); in TEST_F()
358 verifyFormat("A.<B<C<D<E>>>>doSomething();"); in TEST_F()
360 verifyFormat("OrderedPair<String, List<Box<Integer>>> p = null;"); in TEST_F()
362 verifyFormat("@Override\n" in TEST_F()
365 verifyFormat("public <R> ArrayList<R> get() {}"); in TEST_F()
366 verifyFormat("protected <R> ArrayList<R> get() {}"); in TEST_F()
367 verifyFormat("private <R> ArrayList<R> get() {}"); in TEST_F()
368 verifyFormat("public static <R> ArrayList<R> get() {}"); in TEST_F()
369 verifyFormat("public static native <R> ArrayList<R> get();"); in TEST_F()
370 verifyFormat("public final <X> Foo foo() {}"); in TEST_F()
371 verifyFormat("public abstract <X> Foo foo();"); in TEST_F()
372 verifyFormat("<T extends B> T getInstance(Class<T> type);"); in TEST_F()
373 verifyFormat("Function<F, ? extends T> function;"); in TEST_F()
375 verifyFormat("private Foo<X, Y>[] foos;"); in TEST_F()
376 verifyFormat("Foo<X, Y>[] foos = this.foos;"); in TEST_F()
377 verifyFormat("return (a instanceof List<?>)\n" in TEST_F()
382 verifyFormat( in TEST_F()
391 verifyFormat("String someString = \"abc\"\n" in TEST_F()
396 verifyFormat("try {\n" in TEST_F()
401 verifyFormat("try {\n" in TEST_F()
406 verifyFormat("try {\n" in TEST_F()
414 verifyFormat("try {\n" in TEST_F()
422 verifyFormat("try (SomeResource rs = someFunction()) {\n" in TEST_F()
425 verifyFormat("try (SomeResource rs = someFunction()) {\n" in TEST_F()
433 verifyFormat("synchronized (mData) {\n" in TEST_F()
442 verifyFormat("synchronized (mData)\n" in TEST_F()
450 verifyFormat("synchronized (mData) {\n" in TEST_F()
457 verifyFormat("assert a && b;"); in TEST_F()
458 verifyFormat("assert (a && b);"); in TEST_F()
462 verifyFormat("package some.really.loooooooooooooooooooooong.package;", in TEST_F()
467 verifyFormat("import some.really.loooooooooooooooooooooong.imported.Class;", in TEST_F()
469 verifyFormat("import static some.really.looooooooooooooooong.imported.Class;", in TEST_F()
474 verifyFormat("void methodName(Object arg1,\n" in TEST_F()
477 verifyFormat("void methodName(\n" in TEST_F()
498 verifyFormat("public void union(Type a, Type b);"); in TEST_F()
499 verifyFormat("public void struct(Object o);"); in TEST_F()
500 verifyFormat("public void delete(Object o);"); in TEST_F()
501 verifyFormat("return operator && (aa);"); in TEST_F()
505 verifyFormat("return aaaaaaaaaaaaaaaaaaa\n" in TEST_F()
509 verifyFormat("return (result == null)\n" in TEST_F()
513 verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n" in TEST_F()
517 verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n" in TEST_F()
525 verifyFormat("someObject.someFunction(new Runnable() {\n" in TEST_F()
531 verifyFormat("someFunction(new Runnable() {\n" in TEST_F()
536 verifyFormat("someObject.someFunction(\n" in TEST_F()
553 verifyFormat("(aaaaaaaaaa, bbbbbbbbbb) -> aaaaaaaaaa + bbbbbbbbbb;"); in TEST_F()
554 verifyFormat("(aaaaaaaaaa, bbbbbbbbbb)\n" in TEST_F()
557 verifyFormat("Runnable someLambda = () -> DoSomething();"); in TEST_F()
558 verifyFormat("Runnable someLambda = () -> {\n" in TEST_F()
562 verifyFormat("Runnable someLambda =\n" in TEST_F()
597 verifyFormat("void f() {\n" in TEST_F()
601 verifyFormat("void f() {\n" in TEST_F()
610 verifyFormat("enum Enum {\n" in TEST_F()