namespace { -> unnamed namespace

This commit is contained in:
John Keiser 2020-08-01 14:46:23 -07:00
parent 460cfcaf3e
commit 379a4e6a01
54 changed files with 59 additions and 59 deletions

View File

@ -56,6 +56,6 @@ really_inline bool add_overflow(uint64_t value1, uint64_t value2, uint64_t *resu
}
} // namespace arm64
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_ARM64_BITMANIPULATION_H

View File

@ -99,7 +99,7 @@ really_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2, c
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "generic/stage1/utf8_lookup4_algorithm.h"
#include "generic/stage1/json_structural_indexer.h"
@ -167,6 +167,6 @@ WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, siz
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "arm64/end_implementation.h"

View File

@ -17,6 +17,6 @@ WARN_UNUSED error_code implementation::create_dom_parser_implementation(
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "arm64/end_implementation.h"

View File

@ -23,6 +23,6 @@ public:
};
} // namespace arm64
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_ARM64_IMPLEMENTATION_H

View File

@ -15,7 +15,7 @@ static really_inline uint32_t parse_eight_digits_unrolled(const uint8_t *chars)
}
} // namespace arm64
} // namespace {
} // unnamed namespace
#define SWAR_NUMBER_PARSING

View File

@ -495,6 +495,6 @@ really_inline int8x16_t make_int8x16_t(int8_t x1, int8_t x2, int8_t x3, int8_
} // namespace simd
} // namespace arm64
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_ARM64_SIMD_H

View File

@ -44,7 +44,7 @@ really_inline backslash_and_quote backslash_and_quote::copy_and_find(const uint8
}
} // namespace arm64
} // namespace {
} // unnamed namespace
#include "generic/stage2/stringparsing.h"

View File

@ -40,6 +40,6 @@ really_inline int leading_zeroes(uint64_t input_num) {
}
} // namespace fallback
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_FALLBACK_BITMANIPULATION_H

View File

@ -308,7 +308,7 @@ WARN_UNUSED bool implementation::validate_utf8(const char *buf, size_t len) cons
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
//
// Stage 2
@ -344,6 +344,6 @@ WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, siz
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "fallback/end_implementation.h"

View File

@ -17,6 +17,6 @@ WARN_UNUSED error_code implementation::create_dom_parser_implementation(
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "fallback/end_implementation.h"

View File

@ -27,6 +27,6 @@ public:
};
} // namespace fallback
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_FALLBACK_IMPLEMENTATION_H

View File

@ -22,7 +22,7 @@ static really_inline uint32_t parse_eight_digits_unrolled(const uint8_t *chars)
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#define SWAR_NUMBER_PARSING
#include "generic/stage2/numberparsing.h"

View File

@ -27,7 +27,7 @@ really_inline backslash_and_quote backslash_and_quote::copy_and_find(const uint8
}
} // namespace fallback
} // namespace {
} // unnamed namespace
#include "generic/stage2/stringparsing.h"

View File

@ -45,7 +45,7 @@ public:
};
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "generic/stage1/allocate.h"
#include "generic/stage2/allocate.h"
@ -71,4 +71,4 @@ WARN_UNUSED error_code dom_parser_implementation::set_max_depth(size_t max_depth
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -18,4 +18,4 @@ really_inline error_code set_capacity(internal::dom_parser_implementation &parse
} // namespace allocate
} // namespace stage1
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -86,4 +86,4 @@ really_inline void buf_block_reader<STEP_SIZE>::advance() {
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -68,4 +68,4 @@ really_inline uint32_t find_next_document_index(dom_parser_implementation &parse
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -78,4 +78,4 @@ error_code json_minifier::minify(const uint8_t *buf, size_t len, uint8_t *dst, s
} // namespace stage1
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -92,4 +92,4 @@ really_inline error_code json_scanner::finish(bool streaming) {
} // namespace stage1
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -140,4 +140,4 @@ really_inline error_code json_string_scanner::finish(bool streaming) {
} // namespace stage1
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -226,4 +226,4 @@ really_inline error_code json_structural_indexer::finish(dom_parser_implementati
} // namespace stage1
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -181,4 +181,4 @@ struct utf8_checker {
}; // struct utf8_checker
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -217,7 +217,7 @@ using namespace simd;
}; // struct utf8_checker
} // namespace utf8_validation
} // namespace {
} // unnamed namespace
using utf8_validation::utf8_checker;

View File

@ -237,7 +237,7 @@ using namespace simd;
}; // struct utf8_checker
} // namespace utf8_validation
} // namespace {
} // unnamed namespace
using utf8_validation::utf8_checker;

View File

@ -178,4 +178,4 @@ using namespace simd;
using utf8_validation::utf8_checker;
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -300,4 +300,4 @@ struct utf8_checker {
} // namespace utf8_validation
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -183,4 +183,4 @@ struct utf8_checker {
}; // struct utf8_checker
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -28,4 +28,4 @@ bool generic_validate_utf8(const char * input, size_t length) {
} // namespace stage1
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -362,4 +362,4 @@ struct utf8_checker {
}; // struct utf8_checker
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -19,4 +19,4 @@ really_inline error_code set_max_depth(dom_parser_implementation &parser, size_t
} // namespace allocate
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -61,4 +61,4 @@ really_inline bool is_valid_null_atom(const uint8_t *src, size_t len) {
} // namespace atomparsing
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -106,4 +106,4 @@ really_inline value128 full_multiplication(uint64_t value1, uint64_t value2) {
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -66,4 +66,4 @@ namespace logger {
} // namespace logger
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -505,4 +505,4 @@ really_inline bool parse_number(const uint8_t *const src, W &writer) {
} // namespace numberparsing
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -122,4 +122,4 @@ WARN_UNUSED really_inline uint8_t *parse_string(const uint8_t *src, uint8_t *dst
} // namespace stringparsing
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -47,4 +47,4 @@ public:
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -440,4 +440,4 @@ error:
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -100,4 +100,4 @@ really_inline void tape_writer::write(uint64_t &tape_loc, uint64_t val, internal
} // namespace stage2
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace

View File

@ -54,6 +54,6 @@ really_inline bool add_overflow(uint64_t value1, uint64_t value2,
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_HASWELL_BITMANIPULATION_H

View File

@ -18,6 +18,6 @@ really_inline uint64_t prefix_xor(const uint64_t bitmask) {
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_HASWELL_BITMASK_H

View File

@ -65,7 +65,7 @@ really_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2, c
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "generic/stage1/utf8_lookup4_algorithm.h"
#include "generic/stage1/json_structural_indexer.h"
@ -130,6 +130,6 @@ WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, siz
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "haswell/end_implementation.h"

View File

@ -17,7 +17,7 @@ WARN_UNUSED error_code implementation::create_dom_parser_implementation(
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "haswell/end_implementation.h"

View File

@ -27,6 +27,6 @@ public:
};
} // namespace haswell
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_HASWELL_IMPLEMENTATION_H

View File

@ -23,7 +23,7 @@ static really_inline uint32_t parse_eight_digits_unrolled(const uint8_t *chars)
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#define SWAR_NUMBER_PARSING

View File

@ -349,6 +349,6 @@ namespace simd {
} // namespace simd
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_HASWELL_SIMD_H

View File

@ -39,7 +39,7 @@ really_inline backslash_and_quote backslash_and_quote::copy_and_find(const uint8
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "generic/stage2/stringparsing.h"

View File

@ -63,6 +63,6 @@ really_inline bool add_overflow(uint64_t value1, uint64_t value2,
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_WESTMERE_BITMANIPULATION_H

View File

@ -18,6 +18,6 @@ really_inline uint64_t prefix_xor(const uint64_t bitmask) {
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_WESTMERE_BITMASK_H

View File

@ -70,7 +70,7 @@ really_inline simd8<bool> must_be_2_3_continuation(const simd8<uint8_t> prev2, c
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "generic/stage1/utf8_lookup4_algorithm.h"
#include "generic/stage1/json_structural_indexer.h"
@ -136,6 +136,6 @@ WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, siz
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "westmere/end_implementation.h"

View File

@ -17,6 +17,6 @@ WARN_UNUSED error_code implementation::create_dom_parser_implementation(
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "westmere/end_implementation.h"

View File

@ -25,6 +25,6 @@ public:
};
} // namespace westmere
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_WESTMERE_IMPLEMENTATION_H

View File

@ -23,7 +23,7 @@ static really_inline uint32_t parse_eight_digits_unrolled(const uint8_t *chars)
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#define SWAR_NUMBER_PARSING

View File

@ -328,6 +328,6 @@ namespace simd {
} // namespace simd
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#endif // SIMDJSON_WESTMERE_SIMD_INPUT_H

View File

@ -37,7 +37,7 @@ really_inline backslash_and_quote backslash_and_quote::copy_and_find(const uint8
}
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace {
} // unnamed namespace
#include "generic/stage2/stringparsing.h"