Skip to content

Commit 1584e93

Browse files
committed
[C++] Stop clang-tidy from falsely analyzing sbeCheckPosition should be static.
1 parent 2dec9fb commit 1584e93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ private static void generateGroupClassHeader(
296296
indent + " return *m_positionPtr;\n" +
297297
indent + " }\n\n" +
298298

299+
indent + " // NOLINTNEXTLINE(readability-convert-member-functions-to-static)\n" +
299300
indent + " std::uint64_t sbeCheckPosition(const std::uint64_t position)\n" +
300301
indent + " {\n" +
301302
indent + " if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false))\n" +
@@ -1988,6 +1989,7 @@ private CharSequence generateMessageFlyweightCode(final String className, final
19881989
" return m_position;\n" +
19891990
" }\n\n" +
19901991

1992+
" // NOLINTNEXTLINE(readability-convert-member-functions-to-static)\n" +
19911993
" std::uint64_t sbeCheckPosition(const std::uint64_t position)\n" +
19921994
" {\n" +
19931995
" if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false))\n" +

0 commit comments

Comments
 (0)