Ada 3.1.0
Fast spec-compliant URL parser
|
Common definitions for cross-platform compiler support. More...
#include <version>
Go to the source code of this file.
Namespaces | |
namespace | ada |
Macros | |
#define | ADA_BEGIN_DEBUG_BLOCK(name) |
#define | ADA_END_DEBUG_BLOCK(name) |
#define | ADA_DEBUG_BLOCK(name, block) |
#define | ADA_ROUNDUP_N(a, n) |
#define | ADA_ROUNDDOWN_N(a, n) |
#define | ADA_ISALIGNED_N(ptr, n) |
#define | ada_really_inline inline __attribute__((always_inline)) |
#define | ada_never_inline inline __attribute__((noinline)) |
#define | ada_unused __attribute__((unused)) |
#define | ada_warn_unused __attribute__((warn_unused_result)) |
#define | ADA_PUSH_DISABLE_WARNINGS _Pragma("GCC diagnostic push") |
#define | ADA_PUSH_DISABLE_ALL_WARNINGS |
#define | ADA_PRAGMA(P) |
#define | ADA_DISABLE_GCC_WARNING(WARNING) |
#define | ADA_DISABLE_UNDESIRED_WARNINGS |
#define | ADA_DISABLE_DEPRECATED_WARNING ADA_DISABLE_GCC_WARNING("-Wdeprecated-declarations") |
#define | ADA_DISABLE_STRICT_OVERFLOW_WARNING ADA_DISABLE_GCC_WARNING("-Wstrict-overflow") |
#define | ADA_POP_DISABLE_WARNINGS _Pragma("GCC diagnostic pop") |
#define | ADA_DLLIMPORTEXPORT |
#define | ADA_TRY(EXPR) |
If EXPR is an error, returns it. | |
#define | __has_cpp_attribute(x) |
#define | ADA_ATTRIBUTE_NOINLINE |
#define | ADA_DEVELOPMENT_CHECKS 1 |
#define | ADA_STR(x) |
#define | ADA_REQUIRE(EXPR) |
#define | ADA_FAIL(MESSAGE) |
#define | ADA_ASSERT_EQUAL(LHS, RHS, MESSAGE) |
#define | ADA_ASSERT_TRUE(COND) |
#define | ADA_ASSUME(COND) |
#define | ada_lifetime_bound |
Functions | |
void | ada::unreachable () |
Common definitions for cross-platform compiler support.
Definition in file common_defs.h.
#define __has_cpp_attribute | ( | x | ) |
Definition at line 146 of file common_defs.h.
#define ADA_ASSERT_EQUAL | ( | LHS, | |
RHS, | |||
MESSAGE ) |
Definition at line 203 of file common_defs.h.
Referenced by ada::url_aggregator::clear_hash(), and ada::url_aggregator::clear_search().
#define ADA_ASSERT_TRUE | ( | COND | ) |
Definition at line 210 of file common_defs.h.
Referenced by ada::url_pattern_helpers::url_pattern_parser< F >::add_part(), ada::url_pattern_helpers::Tokenizer::add_token(), ada::url_pattern_helpers::canonicalize_hash(), ada::url_pattern_helpers::canonicalize_hostname(), ada::url_pattern_helpers::canonicalize_password(), ada::url_pattern_helpers::canonicalize_port(), ada::url_pattern_helpers::canonicalize_search(), ada::url_pattern_helpers::canonicalize_username(), ada::url_aggregator::clear_hash(), ada::url_aggregator::clear_port(), ada::url_aggregator::clear_search(), ada::url_pattern_helpers::escape_pattern_string(), ada::url_pattern_helpers::escape_regexp_string(), ada::url_pattern_helpers::generate_pattern_string(), ada::url_pattern_helpers::generate_regular_expression_and_name_list(), ada::url_pattern_helpers::Tokenizer::get_next_code_point(), ada::url_pattern_helpers::constructor_string_parser< regex_provider >::is_search_prefix(), ada::url_pattern< regex_provider >::match(), ada::parser::parse_url_impl(), ada::url_aggregator::parse_url_pattern_impl, ada::url_pattern_init::process(), ada::url_pattern_init::process_hash(), ada::url_pattern_init::process_search(), ada::url_pattern_helpers::Tokenizer::process_tokenizing_error(), ada::url_aggregator::set_hash(), ada::url_aggregator::set_host(), ada::url_aggregator::set_hostname(), ada::url_aggregator::set_href(), ada::url_aggregator::set_password(), ada::url_aggregator::set_pathname(), ada::url_aggregator::set_port(), ada::url_aggregator::set_protocol(), ada::url_aggregator::set_search(), ada::url_aggregator::set_username(), and ada::url_pattern_helpers::url_pattern_parser< F >::try_consume_token().
#define ADA_ASSUME | ( | COND | ) |
Definition at line 227 of file common_defs.h.
#define ADA_ATTRIBUTE_NOINLINE |
Definition at line 152 of file common_defs.h.
#define ADA_BEGIN_DEBUG_BLOCK | ( | name | ) |
Definition at line 37 of file common_defs.h.
#define ADA_DEBUG_BLOCK | ( | name, | |
block ) |
Definition at line 39 of file common_defs.h.
#define ADA_DEVELOPMENT_CHECKS 1 |
Definition at line 186 of file common_defs.h.
#define ADA_DISABLE_DEPRECATED_WARNING ADA_DISABLE_GCC_WARNING("-Wdeprecated-declarations") |
Definition at line 112 of file common_defs.h.
#define ADA_DISABLE_GCC_WARNING | ( | WARNING | ) |
Definition at line 104 of file common_defs.h.
#define ADA_DISABLE_STRICT_OVERFLOW_WARNING ADA_DISABLE_GCC_WARNING("-Wstrict-overflow") |
Definition at line 114 of file common_defs.h.
#define ADA_DISABLE_UNDESIRED_WARNINGS |
Definition at line 110 of file common_defs.h.
#define ADA_DLLIMPORTEXPORT |
Definition at line 132 of file common_defs.h.
#define ADA_END_DEBUG_BLOCK | ( | name | ) |
Definition at line 38 of file common_defs.h.
#define ADA_FAIL | ( | MESSAGE | ) |
Definition at line 198 of file common_defs.h.
#define ADA_ISALIGNED_N | ( | ptr, | |
n ) |
Definition at line 46 of file common_defs.h.
#define ada_lifetime_bound |
Definition at line 254 of file common_defs.h.
Referenced by ada::url_aggregator::get_hash(), ada::url_pattern< regex_provider >::get_hash(), ada::url_aggregator::get_host(), ada::url_aggregator::get_hostname(), ada::url_pattern< regex_provider >::get_hostname(), ada::url_aggregator::get_href(), ada::url_aggregator::get_password(), ada::url_pattern< regex_provider >::get_password(), ada::url_aggregator::get_pathname(), ada::url_pattern< regex_provider >::get_pathname(), ada::url_aggregator::get_port(), ada::url_pattern< regex_provider >::get_port(), ada::url_aggregator::get_protocol(), ada::url_pattern< regex_provider >::get_protocol(), ada::url_aggregator::get_search(), ada::url_pattern< regex_provider >::get_search(), ada::url_aggregator::get_username(), ada::url_pattern< regex_provider >::get_username(), ada::url_pattern< regex_provider >::url_pattern(), and ada::url_aggregator::~url_aggregator().
#define ada_never_inline inline __attribute__((noinline)) |
Definition at line 82 of file common_defs.h.
#define ADA_POP_DISABLE_WARNINGS _Pragma("GCC diagnostic pop") |
Definition at line 116 of file common_defs.h.
#define ADA_PRAGMA | ( | P | ) |
Definition at line 103 of file common_defs.h.
#define ADA_PUSH_DISABLE_ALL_WARNINGS |
Definition at line 90 of file common_defs.h.
#define ADA_PUSH_DISABLE_WARNINGS _Pragma("GCC diagnostic push") |
Definition at line 87 of file common_defs.h.
#define ada_really_inline inline __attribute__((always_inline)) |
Definition at line 81 of file common_defs.h.
Referenced by ada::character_sets::bit_at(), ada::helpers::find_next_host_delimiter(), ada::helpers::find_next_host_delimiter_special(), ada::url::get_components(), ada::url::get_href(), ada::url::has_credentials(), ada::url::has_port(), ada::url_base::has_valid_domain(), ada::url_base::is_special(), ada::url_base::parse_port(), ada::unicode::percent_encode_index(), ada::helpers::trailing_zeroes(), and ada::url_aggregator::~url_aggregator().
#define ADA_REQUIRE | ( | EXPR | ) |
Definition at line 194 of file common_defs.h.
#define ADA_ROUNDDOWN_N | ( | a, | |
n ) |
Definition at line 44 of file common_defs.h.
#define ADA_ROUNDUP_N | ( | a, | |
n ) |
Definition at line 43 of file common_defs.h.
#define ADA_STR | ( | x | ) |
Definition at line 191 of file common_defs.h.
#define ADA_TRY | ( | EXPR | ) |
If EXPR is an error, returns it.
Definition at line 136 of file common_defs.h.
#define ada_unused __attribute__((unused)) |
Definition at line 84 of file common_defs.h.
Referenced by ada::helpers::get_state().
#define ada_warn_unused __attribute__((warn_unused_result)) |
Definition at line 85 of file common_defs.h.
Referenced by ada::parse(), ada::parse< url_aggregator >(), ada::to_string(), and ada::to_string().