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
10namespace arene {
11namespace 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
17using 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)
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
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)
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
55using 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)
65using 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
74using 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)
84using 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_
Definition array_exceptions_disabled.cpp:11
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10