reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Format/FormatTestJava.cpp
   54   verifyFormat("someObject.and();");
   58   verifyFormat("a[b >> 1] = (byte) (c() << 4);");
   63   verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n"
   67   verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa instanceof\n"
   70   verifyFormat("return aaaaaaaaaaaaaaaaaaa instanceof bbbbbbbbbbbbbbbbbbbbbbb\n"
   75   verifyFormat("class SomeClass {\n"
   90   verifyFormat("public some.package.Type someFunction( // comment\n"
   95   verifyFormat("SomeClass.class.getName();");
   96   verifyFormat("Class c = SomeClass.class;");
  100   verifyFormat("public class SomeClass {\n"
  104   verifyFormat("public class A {\n"
  112   verifyFormat("public class A extends B.C {}");
  114   verifyFormat("abstract class SomeClass\n"
  117   verifyFormat("abstract class SomeClass extends SomeOtherClass\n"
  120   verifyFormat("abstract class SomeClass\n"
  124   verifyFormat("abstract class SomeClass\n"
  129   verifyFormat("abstract class SomeClass\n"
  132   verifyFormat("@SomeAnnotation()\n"
  136   verifyFormat("@SomeAnnotation()\n"
  140   verifyFormat("interface SomeInterface<A> extends Foo, Bar {\n"
  144   verifyFormat("public interface SomeInterface {\n"
  149   verifyFormat("@interface SomeInterface {\n"
  153   verifyFormat("public @interface SomeInterface {\n"
  157   verifyFormat("class A {\n"
  163   verifyFormat("class A {\n"
  169   verifyFormat("return new A() {\n"
  174   verifyFormat("A a = new A() {\n"
  182   verifyFormat("enum SomeThing { ABC, CDE }");
  183   verifyFormat("enum SomeThing {\n"
  187   verifyFormat("public class SomeClass {\n"
  191   verifyFormat("public class SomeClass implements SomeInterface {\n"
  195   verifyFormat("enum SomeThing {\n"
  200   verifyFormat("enum SomeThing {\n"
  205   verifyFormat("enum SomeThing {\n"
  210   verifyFormat("public enum SomeThing {\n"
  224   verifyFormat("private enum SomeEnum implements Foo<?, B> {\n"
  238   verifyFormat("public enum VeryLongEnum {\n"
  248   verifyFormat("new int[] {1, 2, 3, 4};");
  249   verifyFormat("new int[] {\n"
  258   verifyFormat(
  265   verifyFormat("public void doSooooooooooooooooooooooooooomething()\n"
  267   verifyFormat("public void doSooooooooooooooooooooooooooomething()\n"
  272   verifyFormat("@Override\n"
  274   verifyFormat("@Override\n"
  277   verifyFormat("@Override // comment\n"
  280   verifyFormat("@java.lang.Override // comment\n"
  284   verifyFormat("@SuppressWarnings(value = \"unchecked\")\n"
  286   verifyFormat("@SuppressWarnings(value = \"unchecked\")\n"
  290   verifyFormat("DoSomething(new A() {\n"
  295   verifyFormat("void SomeFunction(@Nullable String something) {}");
  296   verifyFormat("void SomeFunction(@org.llvm.Nullable String something) {}");
  298   verifyFormat("@Partial @Mock DataLoader loader;");
  299   verifyFormat("@Partial\n"
  303   verifyFormat("@SuppressWarnings(value = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\")\n"
  306   verifyFormat("@SomeAnnotation(\"With some really looooooooooooooong text\")\n"
  308   verifyFormat("@org.llvm.Qualified(\"With some really looooooooooong text\")\n"
  310   verifyFormat("@Mock\n"
  314   verifyFormat("@org.llvm.QualifiedMock\n"
  318   verifyFormat("@Test(a)\n"
  321   verifyFormat("@SomeAnnotation(\n"
  325   verifyFormat("@Test\n"
  329   verifyFormat("{\n"
  335   verifyFormat("@Annotation(\"Some\"\n"
  341   verifyFormat("Iterable<?> a;");
  342   verifyFormat("Iterable<?> a;");
  343   verifyFormat("Iterable<? extends SomeObject> a;");
  345   verifyFormat("A.<B>doSomething();");
  346   verifyFormat("A.<B<C>>doSomething();");
  347   verifyFormat("A.<B<C<D>>>doSomething();");
  348   verifyFormat("A.<B<C<D<E>>>>doSomething();");
  350   verifyFormat("OrderedPair<String, List<Box<Integer>>> p = null;");
  352   verifyFormat("@Override\n"
  355   verifyFormat("public <R> ArrayList<R> get() {}");
  356   verifyFormat("protected <R> ArrayList<R> get() {}");
  357   verifyFormat("private <R> ArrayList<R> get() {}");
  358   verifyFormat("public static <R> ArrayList<R> get() {}");
  359   verifyFormat("public static native <R> ArrayList<R> get();");
  360   verifyFormat("public final <X> Foo foo() {}");
  361   verifyFormat("public abstract <X> Foo foo();");
  362   verifyFormat("<T extends B> T getInstance(Class<T> type);");
  363   verifyFormat("Function<F, ? extends T> function;");
  365   verifyFormat("private Foo<X, Y>[] foos;");
  366   verifyFormat("Foo<X, Y>[] foos = this.foos;");
  367   verifyFormat("return (a instanceof List<?>)\n"
  372   verifyFormat(
  381   verifyFormat("String someString = \"abc\"\n"
  386   verifyFormat("try {\n"
  391   verifyFormat("try {\n"
  396   verifyFormat("try {\n"
  404   verifyFormat("try {\n"
  412   verifyFormat("try (SomeResource rs = someFunction()) {\n"
  415   verifyFormat("try (SomeResource rs = someFunction()) {\n"
  423   verifyFormat("synchronized (mData) {\n"
  429   verifyFormat("assert a && b;");
  430   verifyFormat("assert (a && b);");
  434   verifyFormat("package some.really.loooooooooooooooooooooong.package;",
  439   verifyFormat("import some.really.loooooooooooooooooooooong.imported.Class;",
  441   verifyFormat("import static some.really.looooooooooooooooong.imported.Class;",
  446   verifyFormat("void methodName(Object arg1,\n"
  449   verifyFormat("void methodName(\n"
  471   verifyFormat("public void union(Type a, Type b);");
  472   verifyFormat("public void struct(Object o);");
  473   verifyFormat("public void delete(Object o);");
  474   verifyFormat("return operator && (aa);");
  478   verifyFormat("return aaaaaaaaaaaaaaaaaaa\n"
  482   verifyFormat("return (result == null)\n"
  486   verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n"
  490   verifyFormat("return aaaaaaaaaaaaaaaaaaa()\n"
  498   verifyFormat("someObject.someFunction(new Runnable() {\n"
  504   verifyFormat("someFunction(new Runnable() {\n"
  509   verifyFormat("someObject.someFunction(\n"
  526   verifyFormat("(aaaaaaaaaa, bbbbbbbbbb) -> aaaaaaaaaa + bbbbbbbbbb;");
  527   verifyFormat("(aaaaaaaaaa, bbbbbbbbbb)\n"
  530   verifyFormat("Runnable someLambda = () -> DoSomething();");
  531   verifyFormat("Runnable someLambda = () -> {\n"
  535   verifyFormat("Runnable someLambda =\n"
  570     verifyFormat("void f() {\n"
  574     verifyFormat("void f() {\n"