void writeMembers(Writer w, CNode node, String indent) throws IOException {
        for (CNode child : node.getChildren()) {
            String typeName = getTypeName(child, true);
            if (child.getComment().length() > 0) {
                String comment = child.getComment();
                int index;
                do {
                    index = comment.indexOf("\n\n");
                    if (index == -1) break;
                    String next = comment.substring(0, index);
                    comment = comment.substring(index + 2);
                    w.write("\n");
                    writeComment(w, indent, next, false);
                } while (true);
                w.write("\n");
                writeComment(w, indent, comment, true);
            }
            w.write(indent + typeName + " " + getIdentifier(child.getName()) + ";");
            if (child instanceof LeafCNode) {
                LeafCNode leaf = (LeafCNode) child;
                DefaultValue value = leaf.getDefaultValue();
                if (value != null) {
                    w.write(" // Default: " + value.getStringRepresentation());
                }
            }
            w.write("\n");
        }
    }
\n");
        do {
            String current;
            // Extract first line to write
            int newLine = comment.indexOf('\n');
            if (newLine == -1) {
                current = comment;
                comment = "";
            } else {
                current = comment.substring(0, newLine);
                comment = comment.substring(newLine + 1);
            }
            // If line too long, cut it in two
            if (current.length() > maxLineLen) {
                int spaceIndex = current.lastIndexOf(' ', maxLineLen);
                if (spaceIndex >= maxLineLen - 15) {
                    comment = current.substring(spaceIndex + 1)
                              + "\n" + comment;
                    current = current.substring(0, spaceIndex);
                } else {
                    comment = current.substring(maxLineLen) + "\n" + comment;
                    current = current.substring(0, maxLineLen) + "-";
                }
            }
            w.write(indent + (javadoc ? " * " : "// ") + current + "\n");
        } while (comment.length() > 0);
        if (javadoc) w.write(indent + "
configgen/src/main/java/com/yahoo/config/codegen/CppClassBuilder.java