Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
integer_types.hpp
Go to the documentation of this file.
1
// Copyright 2024, Toyota Motor Corporation
2
//
3
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5
#
ifndef
INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_INTEGER_TYPES_HPP_
6
#
define
INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_INTEGER_TYPES_HPP_
7
8
#
include
"arene/base/stdlib_choice/cstdint.hpp"
9
10
namespace
arene
{
11
namespace
base
{
12
13
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
14
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint16_t not reserved in this context"
15
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint16_t not reserved in this context"
16
/// @brief An 8-bit unsigned integer type
17
using
uint8_t
= ::
std
::
uint8_t
;
18
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
19
// parasoft-end-suppress CERT_CPP-DCL51-f-3
20
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
21
22
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
23
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint16_t not reserved in this context"
24
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint16_t not reserved in this context"
25
/// @brief A 16-bit unsigned integer type
26
// NOLINTNEXTLINE(google-runtime-int)
27
using
uint16_t
= ::
std
::
uint16_t
;
28
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
29
// parasoft-end-suppress CERT_CPP-DCL51-f-3
30
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
31
32
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
33
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint32_t not reserved in this context"
34
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint32_t not reserved in this context"
35
/// @brief A 32-bit unsigned integer type
36
using
uint32_t
= ::
std
::
uint32_t
;
37
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
38
// parasoft-end-suppress CERT_CPP-DCL51-f-3
39
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
40
41
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
42
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uint64_t not reserved in this context"
43
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uint64_t not reserved in this context"
44
/// @brief A 64-bit unsigned integer type
45
// NOLINTNEXTLINE(google-runtime-int,readability-magic-numbers)
46
using
uint64_t
= ::
std
::
uint64_t
;
47
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
48
// parasoft-end-suppress CERT_CPP-DCL51-f-3
49
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
50
51
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
52
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int8_t not reserved in this context"
53
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int8_t not reserved in this context"
54
/// @brief An 8-bit signed integer type
55
using
int8_t
= ::
std
::
int8_t
;
56
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
57
// parasoft-end-suppress CERT_CPP-DCL51-f-3
58
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
59
60
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
61
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int16_t not reserved in this context"
62
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int16_t not reserved in this context"
63
/// @brief A 16-bit signed integer type
64
// NOLINTNEXTLINE(google-runtime-int)
65
using
int16_t
= ::
std
::
int16_t
;
66
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
67
// parasoft-end-suppress CERT_CPP-DCL51-f-3
68
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
69
70
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
71
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int32_t not reserved in this context"
72
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int32_t not reserved in this context"
73
/// @brief A 32-bit signed integer type
74
using
int32_t
= ::
std
::
int32_t
;
75
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
76
// parasoft-end-suppress CERT_CPP-DCL51-f-3
77
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
78
79
// parasoft-begin-suppress AUTOSAR-A3_9_1-b-2 "This code is defining a fixed-width type"
80
// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: int64_t not reserved in this context"
81
// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: int64_t not reserved in this context"
82
/// @brief A 64-bit signed integer type
83
// NOLINTNEXTLINE(google-runtime-int,readability-magic-numbers)
84
using
int64_t
= ::
std
::
int64_t
;
85
// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
86
// parasoft-end-suppress CERT_CPP-DCL51-f-3
87
// parasoft-end-suppress AUTOSAR-A3_9_1-b-2
88
89
}
// namespace base
90
}
// namespace arene
91
92
#
endif
// INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_INTEGER_TYPES_HPP_
arene::base
Definition
array_exceptions_disabled.cpp:11
arene
Copyright 2026, Toyota Motor Corporation.
Definition
array_exceptions_disabled.cpp:10
arene
base
compiler_support
integer_types.hpp
Generated by
1.13.2