Skip to content

Commit 83e514a

Browse files
committed
[C++] Codec output formatting.
1 parent 6f9a791 commit 83e514a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,8 +1769,11 @@ private static CharSequence generateConstructorsAndOperators(final String classN
17691769
" {\n" +
17701770
" }\n\n" +
17711771

1772-
" %1$s(char *buffer, const std::uint64_t bufferLength, const std::uint64_t actingBlockLength," +
1773-
" const std::uint64_t actingVersion) :\n" +
1772+
" %1$s(\n" +
1773+
" char *buffer,\n" +
1774+
" const std::uint64_t bufferLength,\n" +
1775+
" const std::uint64_t actingBlockLength,\n" +
1776+
" const std::uint64_t actingVersion) :\n" +
17741777
" %1$s(buffer, 0, bufferLength, actingBlockLength, actingVersion)\n" +
17751778
" {\n" +
17761779
" }\n\n",
@@ -1872,8 +1875,11 @@ private CharSequence generateMessageFlyweightCode(final String className, final
18721875
" }\n\n" +
18731876

18741877
" %10$s &wrapForDecode(\n" +
1875-
" char *buffer, const std::uint64_t offset, const std::uint64_t actingBlockLength,\n" +
1876-
" const std::uint64_t actingVersion, const std::uint64_t bufferLength)\n" +
1878+
" char *buffer,\n" +
1879+
" const std::uint64_t offset,\n" +
1880+
" const std::uint64_t actingBlockLength,\n" +
1881+
" const std::uint64_t actingVersion,\n" +
1882+
" const std::uint64_t bufferLength)\n" +
18771883
" {\n" +
18781884
" return *this = %10$s(buffer, offset, bufferLength, actingBlockLength, actingVersion);\n" +
18791885
" }\n\n" +

0 commit comments

Comments
 (0)