Lines Matching refs:verifyFormat
46 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()
148 verifyFormat("@interface SomeInterface {\n" in TEST_F()
152 verifyFormat("public @interface SomeInterface {\n" in TEST_F()
159 verifyFormat("return new A() {\n" in TEST_F()
164 verifyFormat("A a = new A() {\n" in TEST_F()
172 verifyFormat("enum SomeThing { ABC, CDE }"); in TEST_F()
173 verifyFormat("enum SomeThing {\n" in TEST_F()
177 verifyFormat("public class SomeClass {\n" in TEST_F()
181 verifyFormat("public class SomeClass implements SomeInterface {\n" in TEST_F()
185 verifyFormat("enum SomeThing {\n" in TEST_F()
190 verifyFormat("enum SomeThing {\n" in TEST_F()
195 verifyFormat("enum SomeThing {\n" in TEST_F()
200 verifyFormat("public enum SomeThing {\n" in TEST_F()
214 verifyFormat("private enum SomeEnum implements Foo<?, B> {\n" in TEST_F()
231 verifyFormat("new int[] {1, 2, 3, 4};"); in TEST_F()
232 verifyFormat("new int[] {\n" in TEST_F()
238 verifyFormat( in TEST_F()
245 verifyFormat("public void doSooooooooooooooooooooooooooomething()\n" in TEST_F()
247 verifyFormat("public void doSooooooooooooooooooooooooooomething()\n" in TEST_F()
252 verifyFormat("@Override\n" in TEST_F()
254 verifyFormat("@Override\n" in TEST_F()
257 verifyFormat("@Override // comment\n" in TEST_F()
260 verifyFormat("@java.lang.Override // comment\n" in TEST_F()
264 verifyFormat("@SuppressWarnings(value = \"unchecked\")\n" in TEST_F()
266 verifyFormat("@SuppressWarnings(value = \"unchecked\")\n" in TEST_F()
270 verifyFormat("DoSomething(new A() {\n" in TEST_F()
275 verifyFormat("void SomeFunction(@Nullable String something) {}"); in TEST_F()
276 verifyFormat("void SomeFunction(@org.llvm.Nullable String something) {}"); in TEST_F()
278 verifyFormat("@Partial @Mock DataLoader loader;"); in TEST_F()
279 verifyFormat("@Partial\n" in TEST_F()
283 verifyFormat("@SuppressWarnings(value = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\")\n" in TEST_F()
286 verifyFormat("@SomeAnnotation(\"With some really looooooooooooooong text\")\n" in TEST_F()
288 verifyFormat("@org.llvm.Qualified(\"With some really looooooooooong text\")\n" in TEST_F()
290 verifyFormat("@Mock\n" in TEST_F()
294 verifyFormat("@org.llvm.QualifiedMock\n" in TEST_F()
298 verifyFormat("@Test(a)\n" in TEST_F()
301 verifyFormat("@SomeAnnotation(\n" in TEST_F()
305 verifyFormat("@Test\n" in TEST_F()
309 verifyFormat("{\n" in TEST_F()
315 verifyFormat("@Annotation(\"Some\"\n" in TEST_F()
321 verifyFormat("Iterable<?> a;"); in TEST_F()
322 verifyFormat("Iterable<?> a;"); in TEST_F()
323 verifyFormat("Iterable<? extends SomeObject> a;"); in TEST_F()
325 verifyFormat("A.<B>doSomething();"); in TEST_F()
327 verifyFormat("@Override\n" in TEST_F()
330 verifyFormat("public <R> ArrayList<R> get() {}"); in TEST_F()
331 verifyFormat("protected <R> ArrayList<R> get() {}"); in TEST_F()
332 verifyFormat("private <R> ArrayList<R> get() {}"); in TEST_F()
333 verifyFormat("public static <R> ArrayList<R> get() {}"); in TEST_F()
334 verifyFormat("public static native <R> ArrayList<R> get();"); in TEST_F()
335 verifyFormat("public final <X> Foo foo() {}"); in TEST_F()
336 verifyFormat("public abstract <X> Foo foo();"); in TEST_F()
337 verifyFormat("<T extends B> T getInstance(Class<T> type);"); in TEST_F()
338 verifyFormat("Function<F, ? extends T> function;"); in TEST_F()
340 verifyFormat("private Foo<X, Y>[] foos;"); in TEST_F()
341 verifyFormat("Foo<X, Y>[] foos = this.foos;"); in TEST_F()
342 verifyFormat("return (a instanceof List<?>)\n" in TEST_F()
347 verifyFormat( in TEST_F()
356 verifyFormat("String someString = \"abc\"\n" in TEST_F()
361 verifyFormat("try {\n" in TEST_F()
366 verifyFormat("try {\n" in TEST_F()
371 verifyFormat("try {\n" in TEST_F()
379 verifyFormat("try {\n" in TEST_F()
387 verifyFormat("try (SomeResource rs = someFunction()) {\n" in TEST_F()
390 verifyFormat("try (SomeResource rs = someFunction()) {\n" in TEST_F()
398 verifyFormat("synchronized (mData) {\n" in TEST_F()
404 verifyFormat("assert a && b;"); in TEST_F()
408 verifyFormat("package some.really.loooooooooooooooooooooong.package;", in TEST_F()
413 verifyFormat("import some.really.loooooooooooooooooooooong.imported.Class;", in TEST_F()
415 verifyFormat("import static some.really.looooooooooooooooong.imported.Class;", in TEST_F()
420 verifyFormat("void methodName(Object arg1,\n" in TEST_F()
423 verifyFormat("void methodName(\n" in TEST_F()
429 verifyFormat("public void union(Type a, Type b);"); in TEST_F()
430 verifyFormat("public void struct(Object o);"); in TEST_F()
431 verifyFormat("public void delete(Object o);"); in TEST_F()
432 verifyFormat("return operator && (aa);"); in TEST_F()
436 verifyFormat("return aaaaaaaaaaaaaaaaaaa\n" in TEST_F()
440 verifyFormat("return (result == null)\n" in TEST_F()
444 verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n" in TEST_F()
448 verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n" in TEST_F()
456 verifyFormat("someObject.someFunction(new Runnable() {\n" in TEST_F()
462 verifyFormat("someFunction(new Runnable() {\n" in TEST_F()
467 verifyFormat("someObject.someFunction(\n" in TEST_F()
484 verifyFormat("(aaaaaaaaaa, bbbbbbbbbb) -> aaaaaaaaaa + bbbbbbbbbb;"); in TEST_F()
485 verifyFormat("(aaaaaaaaaa, bbbbbbbbbb)\n" in TEST_F()
488 verifyFormat("Runnable someLambda = () -> DoSomething();"); in TEST_F()
489 verifyFormat("Runnable someLambda = () -> {\n" in TEST_F()
493 verifyFormat("Runnable someLambda =\n" in TEST_F()