mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 15:37:27 +00:00
clang formating cpp code generator and add missing generated classes
This commit is contained in:
@@ -9,8 +9,8 @@ public final class Any {
|
||||
public static final byte TestSimpleTableWithEnum = 2;
|
||||
public static final byte MyGame_Example2_Monster = 3;
|
||||
|
||||
private static final String[] names = { "NONE", "Monster", "TestSimpleTableWithEnum", "MyGame_Example2_Monster", };
|
||||
public static final String[] names = { "NONE", "Monster", "TestSimpleTableWithEnum", "MyGame_Example2_Monster", };
|
||||
|
||||
public static String name(int e) { return names[e]; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ public final class Color {
|
||||
public static final byte Green = 2;
|
||||
public static final byte Blue = 8;
|
||||
|
||||
private static final String[] names = { "Red", "Green", "", "", "", "", "", "Blue", };
|
||||
public static final String[] names = { "Red", "Green", "", "", "", "", "", "Blue", };
|
||||
|
||||
public static String name(int e) { return names[e - Red]; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -135,5 +135,5 @@ public final class Monster extends Table {
|
||||
return o;
|
||||
}
|
||||
public static void finishMonsterBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset, "MONS"); }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -39,5 +39,5 @@ public final class Stat extends Table {
|
||||
int o = builder.endObject();
|
||||
return o;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -23,5 +23,5 @@ public final class Test extends Struct {
|
||||
builder.putShort(a);
|
||||
return builder.offset();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -29,5 +29,5 @@ public final class TestSimpleTableWithEnum extends Table {
|
||||
int o = builder.endObject();
|
||||
return o;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -40,5 +40,5 @@ public final class Vec3 extends Struct {
|
||||
builder.putFloat(x);
|
||||
return builder.offset();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user