Sort the includes for cross-JVM generation consistency
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6269 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -42,8 +42,8 @@ public class GenCPPReceiverTask extends GenReceiverTask
|
||||
CPPUtil.writeTemplate(DECODER_HEADER_TMPL, _cpproot,
|
||||
CPPUtil.makePath(namespaces, dname, ".h"), ctx);
|
||||
|
||||
Set<String> receiverHeaderIncludes = Sets.newHashSet();
|
||||
Set<String> decoderImplIncludes = Sets.newHashSet();
|
||||
Set<String> receiverHeaderIncludes = Sets.newTreeSet();
|
||||
Set<String> decoderImplIncludes = Sets.newTreeSet();
|
||||
for (ServiceMethod meth : methods) {
|
||||
for (Type type : meth.method.getGenericParameterTypes()) {
|
||||
CPPType cppType = new CPPType(type);
|
||||
|
||||
@@ -41,8 +41,8 @@ public class GenCPPServiceTask extends GenServiceTask
|
||||
ctx.put("listeners", sdesc.listeners);
|
||||
ctx.put("argbuilder", new CPPArgBuilder(true));
|
||||
|
||||
Set<String> includes = Sets.newHashSet();
|
||||
Set<String> implIncludes = Sets.newHashSet();
|
||||
Set<String> includes = Sets.newTreeSet();
|
||||
Set<String> implIncludes = Sets.newTreeSet();
|
||||
for (ServiceMethod meth : sdesc.methods) {
|
||||
for (Type type : meth.method.getGenericParameterTypes()) {
|
||||
CPPType cppType = new CPPType(type);
|
||||
|
||||
@@ -91,8 +91,8 @@ public class GenCPPStreamableTask extends GenTask
|
||||
ctx.put("javaName", sclass.getName());
|
||||
ctx.put("namespace", CPPUtil.makeNamespace(sclass));
|
||||
|
||||
Set<String> headerIncludes = Sets.newHashSet();
|
||||
Set<String> implIncludes = Sets.newHashSet();
|
||||
Set<String> headerIncludes = Sets.newTreeSet();
|
||||
Set<String> implIncludes = Sets.newTreeSet();
|
||||
if (needSuper) {
|
||||
ctx.put("super", makeCPPName(sclass.getSuperclass()));
|
||||
addInclude(sclass.getSuperclass(), headerIncludes);
|
||||
|
||||
Reference in New Issue
Block a user