Disallow including headers from implementation files

This commit is contained in:
John Keiser
2023-07-20 10:01:22 -07:00
parent 4dec6ed5a7
commit bb54946b78
93 changed files with 5775 additions and 29057 deletions
+8 -4
View File
@@ -1,6 +1,10 @@
#ifndef SIMDJSON_SRC_WESTMERE_CPP
#define SIMDJSON_SRC_WESTMERE_CPP
#ifndef SIMDJSON_AMALGAMATED
#include "base.h"
#endif // SIMDJSON_AMALGAMATED
#include "simdjson/westmere.h"
#include "simdjson/westmere/implementation.h"
@@ -14,7 +18,7 @@
//
namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace westmere {
simdjson_warn_unused error_code implementation::create_dom_parser_implementation(
size_t capacity,
@@ -113,7 +117,7 @@ simdjson_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2,
}
} // unnamed namespace
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace westmere
} // namespace simdjson
//
@@ -125,7 +129,7 @@ simdjson_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2,
//
namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace westmere {
namespace {
namespace stage1 {
@@ -173,7 +177,7 @@ simdjson_warn_unused error_code dom_parser_implementation::parse(const uint8_t *
return stage2(_doc);
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace westmere
} // namespace simdjson
#include "simdjson/westmere/end.h"