Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
builtin_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_BUILTIN_TYPES_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_BUILTIN_TYPES_HPP_
7
8#include "arene/base/stdlib_choice/cstddef.hpp"
9#include "arene/base/stdlib_choice/cstdint.hpp"
10
11namespace arene {
12namespace base {
13
14// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: size_t not reserved in this context"
15// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: size_t not reserved in this context"
16/// @brief The type of the size of an object
18// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
19// parasoft-end-suppress CERT_CPP-DCL51-f-3
20
21/// @brief The type of nullptr
23
24// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: ptrdiff_t not reserved in this context"
25// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: ptrdiff_t not reserved in this context"
26/// @brief The type of the difference between two pointers
28// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
29// parasoft-end-suppress CERT_CPP-DCL51-f-3
30
31// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "False positive: uintptr_t not reserved in this context"
32// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "False positive: uintptr_t not reserved in this context"
33/// @brief An integer type big enough to hold a pointer
35// parasoft-end-suppress AUTOSAR-M17_0_2-a-2
36// parasoft-end-suppress CERT_CPP-DCL51-f-3
37
38/// @brief A POD type with the maximum alignment constraint
40
41} // namespace base
42} // namespace arene
43
44#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_COMPILER_SUPPORT_BUILTIN_TYPES_HPP_
Definition accumulate.hpp:37
::std::ptrdiff_t ptrdiff_t
The type of the difference between two pointers.
Definition builtin_types.hpp:27
::std::max_align_t max_align_t
A POD type with the maximum alignment constraint.
Definition builtin_types.hpp:39
::std::nullptr_t nullptr_t
The type of nullptr.
Definition builtin_types.hpp:22
::std::size_t size_t
The type of the size of an object.
Definition builtin_types.hpp:17
::std::uintptr_t uintptr_t
An integer type big enough to hold a pointer.
Definition builtin_types.hpp:34
Definition accumulate.hpp:36
typedef nullptr_t
The type of nullptr.
Definition cstddef.hpp:33
::ptrdiff_t ptrdiff_t
A type suitable for holding the difference between two pointers.
Definition cstddef.hpp:31
::max_align_t max_align_t
A POD type which has the maximum alignment required for any built-in type.
Definition cstddef.hpp:35
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29
::uintptr_t uintptr_t
An unsigned integer type the same size as a pointer.
Definition cstdint.hpp:81