Fix member initialization order warning in auto_parser

The compiler was warning about member initialization order mismatch.
C++ initializes members in the order they are declared in the class,
not the order they appear in the initializer list.

Fixed by reordering member declarations to match the initialization
order needed: m_doc must be initialized before m_parser since we
need to call parser.iterate() before moving the parser.

This fixes the -Werror=reorder compilation error in CI.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Francisco Geiman Thiesen
2025-08-03 18:48:07 +00:00
parent a7c95e9cc8
commit 9fbc577be7
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/* auto-generated on 2025-08-03 18:12:50 +0000. Do not edit! */
/* auto-generated on 2025-08-03 18:36:14 +0000. Do not edit! */
/* including simdjson.cpp: */
/* begin file simdjson.cpp */
#define SIMDJSON_SRC_SIMDJSON_CPP